mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-07 00:11:11 -04:00
parent
b87aa9eacd
commit
5ddf788a71
11
README.md
11
README.md
@ -58,15 +58,8 @@ end
|
||||
|
||||
conn.get do |req|
|
||||
req.url '/search'
|
||||
req.options = {
|
||||
:timeout => 5, # open/read timeout Integer 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
|
||||
}
|
||||
}
|
||||
req.options[:timeout] = 5 # open/read timeout in seconds
|
||||
req.options[:open_timeout] = 2 # connection open timeout in seconds
|
||||
end
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user