module HTTPX::Plugins::Callbacks::RequestMethods

  1. lib/httpx/plugins/callbacks.rb

Methods

Public Instance

  1. drain_body

Public Instance methods

drain_body()
[show source]
    # File lib/httpx/plugins/callbacks.rb
126 def drain_body
127   super.tap do |chunk|
128     emit(:body_chunk, chunk) if chunk
129   rescue StandardError => e
130     # in case an error occurs in callback code
131     @drain_error = e
132     nil
133   end
134 end