mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-15 00:01:36 -04:00
24 lines
528 B
Markdown
24 lines
528 B
Markdown
# HTTPClient Adapter
|
|
|
|
This Adapter uses the [httpclient][rdoc] gem to make HTTP requests.
|
|
|
|
```ruby
|
|
conn = Faraday.new(...) do |f|
|
|
f.adapter :httpclient do |client|
|
|
# yields HTTPClient
|
|
client.keep_alive_timeout = 20
|
|
client.ssl_config.timeout = 25
|
|
end
|
|
end
|
|
```
|
|
|
|
## Links
|
|
|
|
* [Gem RDoc][rdoc]
|
|
* [Gem source][src]
|
|
* [Adapter RDoc][adapter_rdoc]
|
|
|
|
[rdoc]: https://www.rubydoc.info/gems/httpclient
|
|
[src]: https://github.com/nahi/httpclient
|
|
[adapter_rdoc]: https://www.rubydoc.info/gems/faraday/Faraday/Adapter/HTTPClient
|