adds support for the following options:
:expect_timeout |
time (in seconds) to wait for a 100-expect response, before retrying without the |
:expect_threshold_size |
min threshold (in bytes) of the request payload to enable the 100-continue negotiation on. |
Public Instance methods
option_expect_threshold_size(value)
[show source]
# File lib/httpx/plugins/expect.rb 36 def option_expect_threshold_size(value) 37 bytes = Integer(value) 38 raise TypeError, ":expect_threshold_size must be positive" unless bytes.positive? 39 40 bytes 41 end
option_expect_timeout(value)
[show source]
# File lib/httpx/plugins/expect.rb 29 def option_expect_timeout(value) 30 seconds = Float(value) 31 raise TypeError, ":expect_timeout must be positive" unless seconds.positive? 32 33 seconds 34 end