A thin Swift wrapper around NSURLSession that simplifies HTTP requests with convenient APIs.
SwiftHTTP is a lightweight networking library for Swift that simplifies making HTTP requests by wrapping Apple's NSURLSession. It provides a clean, closure-based API for common tasks like GET, POST, uploads, downloads, and authentication, reducing boilerplate code and improving developer productivity.
iOS and macOS developers building apps that require HTTP networking, especially those who want a simple, Swift-native alternative to verbose NSURLSession code or heavier third-party libraries.
Developers choose SwiftHTTP for its minimalistic design, ease of use, and comprehensive feature set—including SSL pinning, progress tracking, and queue management—without the overhead of larger networking frameworks.
Thin wrapper around NSURLSession in swift. Simplifies HTTP requests.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Swift closures for asynchronous requests, eliminating callback hell and simplifying code, as shown in all HTTP method examples like GET and POST.
Includes HTTPQueue for managing multiple requests with configurable concurrency, demonstrated in the queue example with maxSimultaneousRequest settings.
Supports SSL pinning with certificate or public key validation and HTTP authentication (Basic/Digest), with detailed code snippets for implementation.
Provides closure-based callbacks for monitoring progress on file transfers, as illustrated in the progress section with a progress handler.
Primarily targets iOS and macOS; Linux support is listed as a TODO and uncertain, making it unsuitable for cross-platform server-side Swift projects.
Requires explicit JSON decoding with Codable, unlike some libraries that offer automatic mapping, as seen in the client/server example where developers must decode manually.
Stays close to Apple's NSURLSession API, which might not abstract enough for developers seeking higher-level features like request interception or advanced error handling.