Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 700 Bytes

net_http_persistent.md

File metadata and controls

29 lines (24 loc) · 700 Bytes
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

Links