mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-08 00:03:41 -04:00
parent
b87aa9eacd
commit
5ddf788a71
11
README.md
11
README.md
@ -58,15 +58,8 @@ end
|
|||||||
|
|
||||||
conn.get do |req|
|
conn.get do |req|
|
||||||
req.url '/search'
|
req.url '/search'
|
||||||
req.options = {
|
req.options[:timeout] = 5 # open/read timeout in seconds
|
||||||
:timeout => 5, # open/read timeout Integer in seconds
|
req.options[:open_timeout] = 2 # connection open timeout in seconds
|
||||||
:open_timeout => 2, # read timeout Integer in seconds
|
|
||||||
:proxy => {
|
|
||||||
:uri => "http://example.org/", # proxy server URI
|
|
||||||
:user => "me", # proxy server username
|
|
||||||
:password => "test123" # proxy server password
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user