http
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
Really enjoy using your gem, so decided to study internal of it better. is there any better way to understand internals, when contributing to gem directly? I guess, not. This...
Hello, This adds an `on_redirect` callback that can be passed to `.follow`. For example: ```ruby permanent_redirects = [] HTTP.follow( max_hops: 4, on_redirect: proc do |from, to| permanent_redirects.push({ from: from.uri.to_s, to:...
We're getting weird connection issues in our exception tracker: ``` HTTP::ConnectionError: error reading from socket: stream closed in another thread per_operation.rb 79 wait_readable(...) [GEM_ROOT]/gems/http-4.1.1/lib/http/timeout/per_operation.rb:79:in `wait_readable' Caused by: IOError: stream closed...
Hey there! I belong to an open source security research community, and a member (@ranjit-git) has found an issue, but doesn’t know the best way to disclose it. If not...
I'm groping in the dark here, I really have no idea at this point if the problem is JRuby or if I'm misusing httprb somehow, but here's the story. Short...
Basically I want to stream HTTP body to a file. I tried to do this but sadly it doesn't work ```ruby File::open('file.dat','w') do |file| body = HTTP.get(uri).body IO.copy_stream(body, file) end...
* Suggest setting `Content-Length` header manually in case we can't guess body size. See-Also: https://github.com/httprb/http/pull/560
Resolves feature request #642 requesting the addition of Pattern Matching hooks for Ruby 2.7+ by introducing `to_h`, `deconstruct`, and `deconstruct_keys` to core classes. This change also addresses spec changes by...
IO#readpartial allows for a second "outbuf" param which some streaming usages expect, so support it here to allow using response bodies anywhere IO can be.