Module: HTTPX::Plugins::Expect
- Defined in:
- lib/httpx/plugins/expect.rb
Overview
This plugin makes all HTTP/1.1 requests with a body send the “Expect: 100-continue”.
Defined Under Namespace
Modules: ConnectionMethods, InstanceMethods, OptionsMethods, RequestMethods
Constant Summary collapse
- EXPECT_TIMEOUT =
2
Class Method Summary collapse
Class Method Details
.extra_options(options) ⇒ Object
18 19 20 |
# File 'lib/httpx/plugins/expect.rb', line 18 def () .merge(expect_timeout: EXPECT_TIMEOUT) end |
.no_expect_store ⇒ Object
14 15 16 |
# File 'lib/httpx/plugins/expect.rb', line 14 def no_expect_store @no_expect_store ||= [] end |