module HTTPX::Plugins::Expect::OptionsMethods

  1. lib/httpx/plugins/expect.rb

Public Instance methods

option_expect_threshold_size(value)
[show source]
   # File lib/httpx/plugins/expect.rb
31 def option_expect_threshold_size(value)
32   bytes = Integer(value)
33   raise TypeError, ":expect_threshold_size must be positive" unless bytes.positive?
34 
35   bytes
36 end
option_expect_timeout(value)
[show source]
   # File lib/httpx/plugins/expect.rb
24 def option_expect_timeout(value)
25   seconds = Float(value)
26   raise TypeError, ":expect_timeout must be positive" unless seconds.positive?
27 
28   seconds
29 end