http icon indicating copy to clipboard operation
http copied to clipboard

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts

Results 107 http issues
Sort by recently updated
recently updated
newest added

I am trying to translate a curl request that works in the terminal for me into ruby code using the `http` gem. This is the curl request that gives me...

My use case: run multiple requests against a single host, using always the same headers (basic auth, accept and content-type) and a custom SSL context. However I cannot set up...

Feature

I'd like to use this as a master tracking ticket for all feature requests/regressions related to the asynchronous I/O layer/timeout implementation. I think this is one of the most interesting...

Improvement

Sometimes I need to make a `GET` request, and terminate connection before receiving body, so I end up with having something like: ``` ruby def get_cookies(...) http = HTTP.headers(...) http.get(...).cookies...

Feature

Hi, i'm having some issues sending a request with form data. I'm getting this error on post call. > 10: from /var/lib/gems/2.5.0/gems/http-3.3.0/lib/http/chainable.rb:27:in `post' > 9: from /var/lib/gems/2.5.0/gems/http-3.3.0/lib/http/client.rb:30:in `request' > 8:...

Hello, Thanks for this awesome gem. I love python requests egg, and I am glad I am not alone in the Ruby community! I wonder if there is any plan...

Right now some of the methods are returning unexpected results: ``` ruby HTTP::URI.new("https://example.com").join("/foo") ``` I expect the above to result in a `HTTP::URI` instance, but it returns `Addresable::URI`. That came...

The [wiki page on Timeouts](https://github.com/httprb/http/wiki/Timeouts) suggests: > Global timeouts let you set an upper bound of how long a request can take, without having to rely on Timeout.timeout: > HTTP.timeout(:global,...

Hi all, in our app we are using HTTP to talk to a java BRMS/Rules server. We randomly encounter errors at times which return a "bad_record_mac" error. After googling and...

As of this time, all timeouts raise an `HTTP::TimeoutError`. I'd like to be able to handle connect timeout errors differently from read or write timeout errors. For example, I want...