mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
default timeout is now the per operation one
This commit is contained in:
parent
b9bdd7bd0b
commit
690fcaf3d2
@ -41,7 +41,7 @@ module HTTPX
|
||||
defaults = {
|
||||
:proxy => {},
|
||||
:ssl => {},
|
||||
:timeout => Timeout.by(:null),
|
||||
:timeout => Timeout.by(:per_operation),
|
||||
:headers => {},
|
||||
:cookies => {},
|
||||
:max_concurrent_requests => MAX_CONCURRENT_REQUESTS,
|
||||
|
@ -62,7 +62,7 @@ class OptionsSpec < Minitest::Test
|
||||
:body => nil,
|
||||
:follow => nil,
|
||||
:form => {:bar => "bar"},
|
||||
:timeout => Timeout::Null.new,
|
||||
:timeout => Timeout::PerOperation.new,
|
||||
:ssl => {:foo => "bar"},
|
||||
:headers => {"Foo" => "foo", "Accept" => "xml", "Bar" => "bar"},
|
||||
:proxy => {:proxy_address => "127.0.0.1", :proxy_port => 8080},
|
||||
|
Loading…
x
Reference in New Issue
Block a user