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

Net::HTTP provides a rich library which can be used to build HTTP user-agents.

Results 71 net-http issues
Sort by recently updated
recently updated
newest added

faraday allows setting global timeouts ```ruby Faraday.default_connection_options = Faraday::ConnectionOptions.new({ open_timeout: ENV.fetch('NET_HTTP_OPEN_TIMEOUT', 5).to_f, timeout: ENV.fetch('NET_HTTP_TIMEOUT', 30).to_f }) ``` If i set this, then i know all my own code which uses...

As per title, as well as adding some missing documentation about `Net::HTTP#put` (and also adding documentation about the new `Net::HTTP.put` method) Sanity tests pass locally: ![image](https://github.com/ruby/net-http/assets/64618338/7d0b4b6d-4862-4fd3-a1e6-44548ec70fd0) Running `rake test` failed...

Hello, Right now to set ssl params global constants shall be used `OpenSSL::SSL::SSLContext::DEFAULT_PARAMS`, in general it's ok, but some times there is a need to apply specific ssl params just...

Because in some applications the header is sensitive, for this, if I pass an '@', I make the same value in header, without capitalize. For example, I have a request...

Adds Windows CI, including mswin build. This will fail unless #162 is merged, or the test failing in ruby CI is fixed: ``` 1) Failure: TestNetHTTPS#test_session_reuse_but_expire [D:/a/ruby/ruby/src/test/net/http/test_https.rb:184]: expected but was...

In OpenSSL 3, `session.timeout` may not allow negative values, although `context.timeout` can be negative. For more info see https://github.com/ruby/openssl/issues/703. Since the code here is using `session.timeout` in a non-standard way,...

https://bugs.ruby-lang.org/issues/16482

Environment: ``` sh-5.2$ ruby --version ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux] sh-5.2$ gem info net-http *** LOCAL GEMS *** net-http (0.3.2) Author: NARUSE, Yui Homepage: https://github.com/ruby/net-http Licenses: Ruby, BSD-2-Clause Installed...

Hello! This is really meant more to start a conversation since there's likely a lot of implications to this change I'm not aware of. I've found that it would be...

_Originally submitted as [https://bugs.ruby-lang.org/issues/20247](https://bugs.ruby-lang.org/issues/20247)_ Hello, some of my HTTP tests are failing on Ruby 3.3 due to ArgumentError too long. I am trying to update from Ruby 2.7. I did...