remove faulty example of how to set per-request proxy

Closes #150
This commit is contained in:
Mislav Marohnić 2012-05-06 21:42:40 +02:00
parent b87aa9eacd
commit 5ddf788a71

View File

@ -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
```