mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
828 B
828 B
layout | title | permalink | hide | prev_name | prev_link | top_name | top_link | next_name | next_link |
---|---|---|---|---|---|---|---|---|---|
documentation | Net::HTTP::Persistent Adapter | /adapters/net-http-persistent | true | Net::HTTP Adapter | ./net-http | Back to Adapters | ./ | Excon Adapter | ./excon |
This Adapter uses the net-http-persistent gem to make HTTP requests.
conn = Faraday.new(...) do |f|
f.adapter :net_http_persistent, pool_size: 5 do |http|
# yields Net::HTTP::Persistent
http.idle_timeout = 100
http.retry_change_requests = true
end
end