mirror of
https://github.com/lostisland/faraday.git
synced 2025-11-22 00:08:56 -05:00
565 B
565 B
Net::HTTP Adapter
This Adapter uses the Net::HTTP client from the ruby standard library to make HTTP requests.
conn = Faraday.new(...) do |f|
f.adapter :net_http do |http|
# yields Net::HTTP
http.idle_timeout = 100
http.verify_callback = lambda do |preverify, cert_store|
# do something here...
end
end
end