async-http-client
async-http-client copied to clipboard
HTTP client library built on SwiftNIO
In all apps i've used AHC in, we experience relatively-infrequent but consistent `HTTPClientError.remoteConnectionClosed`s. Frequency-wise, my non-scientific approximation would be something like 1/50_000 requests (depends on a lot of factors of...
and fix other `Sendable` related warnings on the way. Proposal: https://github.com/apple/swift-nio/pull/2228 Experiment to see real word usage of the proposal.
AHC logs bytes of the HTTP connection (which is in itself questionable #689). But even if we think that's okay I don't think it should just log `ByteBuffer.debugDescription` which contains...
We should add a ``` extension HTTPClient.Configuration { public static var browserLike: Self { ... } } ``` which should return an evolving configuration that's always as close as possible...
``` private let sharedSingleton: HTTPClient = { let httpClient = HTTPClient(eventLoopGroupProvider: .singleton) Unmanaged.takeUnretained(httpClient) // don't ever deinit this guy }() extension HTTPClient { public var shared: HTTPClient { return sharedSingleton...
IIRC the initial design that we don't log anything private like URL, headers or even bytes at all. That might be a little strict though. But it's very important to...
# Issue Some HTTP requests require authentication. Basic auth is easy for the user to implement, but rarely used (I assume). More frequently, Digest authentication is required. Digest Auth is...
I'm working with Vapor on Linux on a API which connects to a URL and send it a XML, this URL needs certificate authentication (.pem, or p12) and passphrase. Using...
[We currently ignore the error code of the go away](https://github.com/swift-server/async-http-client/blob/817d9aa99fe4c71e7bea18a9a74bc7a5fc166692/Sources/AsyncHTTPClient/ConnectionPool/HTTP2/HTTP2IdleHandler.swift#L65). I think if it is a protocol error we will never receive any further HTTP2Frame on the connection or any...
When attempting to make GET calls with Django based server, I'm getting a 411 Length Required. Looking at the code in *RequestValidation.swift*, it is removing `Content-Length` from headers for `GET`...