Module: HTTPX::Plugins::Callbacks::RequestMethods
- Defined in:
- lib/httpx/plugins/callbacks.rb
Instance Method Summary collapse
Instance Method Details
#drain_body ⇒ Object
126 127 128 129 130 131 132 133 134 |
# File 'lib/httpx/plugins/callbacks.rb', line 126 def drain_body super.tap do |chunk| emit(:body_chunk, chunk) if chunk rescue StandardError => e # in case an error occurs in callback code @drain_error = e nil end end |