You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,16 @@ Or install them yourself as:
22
22
23
23
## Usage
24
24
25
-
Configure your Faraday connection to use this adapter like this:
26
-
27
25
```ruby
28
-
connection =Faraday.new(url, conn_options) do |conn|
29
-
conn.adapter(:httpclient)
26
+
conn =Faraday.new(...) do |f|
27
+
f.adapter :httpclientdo |client|
28
+
# yields HTTPClient
29
+
client.keep_alive_timeout =20
30
+
client.ssl_config.timeout =25
31
+
end
30
32
end
31
33
```
32
34
33
-
For more information on how to setup your Faraday connection and adapters usage, please refer to the [Faraday Website][faraday-website].
34
-
35
35
## Development
36
36
37
37
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -51,7 +51,6 @@ The gem is available as open source under the terms of the [license][license].
51
51
Everyone interacting in the Faraday HTTPClient adapter project's codebase, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct][code-of-conduct].
0 commit comments