Module: HTTPX::Plugins::Expect::OptionsMethods
- Defined in:
- lib/httpx/plugins/expect.rb
Instance Method Summary collapse
Instance Method Details
#option_expect_threshold_size(value) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/httpx/plugins/expect.rb', line 31 def option_expect_threshold_size(value) bytes = Integer(value) raise TypeError, ":expect_threshold_size must be positive" unless bytes.positive? bytes end |
#option_expect_timeout(value) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/httpx/plugins/expect.rb', line 24 def option_expect_timeout(value) seconds = Float(value) raise TypeError, ":expect_timeout must be positive" unless seconds.positive? seconds end |