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

Results 40 async-http issues
Sort by recently updated
recently updated
newest added

Try to reproduce and fix the issue described here: ## Types of Changes - Bug fix. ## Contribution - [ ] I added tests for my changes. - [ ]...

While attempting to use `async-http` (0.71.0) with against a reverse proxy where we need to specify a `Host` header, the library sends the header twice: one with the URL's hostname...

I'm attempting to call `Async::HTTP::Client#get` with a block, but the block never seems to execute? ### Steps To Reproduce ```ruby require 'bundler/setup' require 'async/http' require 'json' endpoint = Async::HTTP::Endpoint.for('https','example.com') client...

https://github.com/socketry/async-http/blob/8bbf377044cb1660c50f315428e3df70129cf694/lib/async/http/client.rb#L83-L90 The `after` hook can hang if a test fails without closing all responses: ``` def after @client&.close @server_task&.stop @bound_endpoint&.close super end ``` Maybe introduce `@client&.close(force = true)` OR `@client&.stop`...

I'm integrating async-debug (it's awesome) and wanted to log the endpoint address. On `Async::HTTP::Endpoint` I found `#url` (what I'm probably conna use) and `#address`. Calling `#address` causes a `NoMethodError` because...

Some tests are logging connection errors (usually ones testing error handling): ``` > bundle exec sus test/async/http/retry.rb:36 0.1s warn: Async::Task: Reading HTTP/1.1 requests for Async::HTTP::Protocol::HTTP1::Server. [oid=0x4d8] [ec=0x4e0] [pid=77118] [2025-03-12 17:23:34...

Seeing an issue where this block yields a Response with all `nil` values: ```ruby Async::HTTP::Internet.post(metrics_url, headers:, body:) do |response| pp st: response.status, hdr: response.headers, bdy: response.body # => {st: nil,...

## Quick Overview Previous comment / where this is coming from: https://github.com/socketry/async-http/issues/183#issuecomment-3649099854 I'm experiencing an issue where the body read doesn't seem to close, causing the next request to hang....

As per https://github.com/ioquatix/ioquatix/discussions/39 I have opened up a pull request containing some MD agent-ready context. ## Types of Changes - New feature. ## Contribution - [x] I added tests for...

``` > bundle exec sus test/async/http/proxy.rb 0.26s warn: Async::HTTP::Client: running example [oid=0x7a0] [ec=0x7a8] [pid=1270945] [2025-07-14 18:51:55 +1200] | Waiting for Async::HTTP::Protocol::HTTP10 pool to drain: # 0.77s warn: Async::HTTP::Client: running example...