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

We use a code like this: ```ruby request = Net::HTTP::Get.new(uri.request_uri) Net::HTTP.start(uri.hostname, uri.port, ipaddr: ip, use_ssl: true) do |http| http.request(request) end ``` What I have noticed is that it is difficult...

When attaching multipart entities of different encodings it is easy to get failures due to intermediary strings inside `encode_multipart_form_data` that care about encoding despite there being no need to care...

Resolves https://github.com/ruby/net-http/issues/6. This patch replaces the implementation of #open_timeout from Timeout.timeout from the builtin timeout in TCPSocket.open, which was introduced in Ruby 3.5 (https://bugs.ruby-lang.org/issues/21347). The builtin timeout in TCPSocket.open is...

In short, this allows `Net::HTTP.get("http://example.com")` instead of `Net::HTTP.get(URI("http://example.com"))`.

## What is happening When using keep-alive connections on Jetty/JDK 17+ servers requests will hang and time out on certain platforms, for example Rocky 8. This could actually happen with...

eof? is a blocking read that times out when no application data is available - it should not be used as a readiness probe

Hello, We have a scenario (push service) where we need to send thousands of HTTP requests per second to the same host. We use Sidekiq to scale this workload. The...

This PR introduces a safeguard to limit the total size of HTTP headers.

This adds a Net::HTTP#ssl_options attribute for setting options on the underlying `OpenSSL::SSL::SSLContext` instance, allowing SSL options to be set per connection instead of globally. There was a feature request for...