async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

HTTP client library built on SwiftNIO

Results 147 async-http-client issues
Sort by recently updated
recently updated
newest added

The [badly named](#243) but highly useful `.delegate(on:)` specifies two things: 1. Which `EventLoop` the returned futures are bound to 2. Which `EventLoop` the delegate callouts happen on. Crucially it does...

Added check to add host only if needed, and also building host the right way.

I tried to use it with usefixie.com and quotaguard.com and getting `invalidProxyResponse` error. I tried to set breakpoints to debug the issue and see that under the hood these services...

This enables the decompressor to decompress files that have been 96% compressed, instead of the previous 90%, when using `HTTPClient.shared`. See https://github.com/swift-server/async-http-client/issues/739. I'm also fine with decreasing the ratio to...

[Penny](https://github.com/vapor/penny-bot) is having difficulty decompressing some GitHub responses after the recent Penny update to use `HTTPClient.shared`. The decompression limit of 10-ratio seems to be too low for a request to...

Two extensions for `HTTPClientResponse` to avoid boilerplate code. Reading a response data currently: ```swift let expectedBytes = headers.first(name: "content-length").flatMap(Int.init) ?? 1024 * 1024 var bytes = try await body.collect(upTo: expectedBytes)...

The `swift-docc-plugin` dependency isn't needed and makes everybody's builds slower as it gets pulled. Swift Package Index auto-adds the dependency.

As the question I directly use the code in the example (async/await way) to make a network request, and get the data normally on liunx, but when running on macOS...

### Motivation: - When the leading slash is omitted in the `string` argument of a relative `URL` instance constructed from `init(string:relativeTo)`, requests made with this `URL` instance fail. This is...

We see code similar to this a lot ``` let expectedBytes = response.headers.first(name: "content-length").flatMap(Int.init) ?? 1024 * 1024 return Response(status: response.status, buffer: try await response.body.collect(upTo: expectedBytes)) ``` The above code...