faraday/docs/adapters/net_http_persistent.md
Nick Campbell d22dd00856
Fix broken Rubydoc.info links (#1236)
For some reason the docs are not being published for this gem anymore,
but they are still reachable when referencing the github path instead.
2021-01-12 15:19:45 +01:00

700 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
  end
end