mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-15 00:01:36 -04:00
* more prominent placing of test adapter * remove next/prev navigation for adapter pages, they don't need to be read in order * ensure all adapter pages link to top nav
725 B
725 B
layout | title | permalink | hide | top_name | top_link |
---|---|---|---|---|---|
documentation | Net::HTTP::Persistent Adapter | /adapters/net-http-persistent | true | Adapters | ./ |
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