Module: HTTPX::Plugins::Stream::OptionsMethods
- Defined in:
- lib/httpx/plugins/stream.rb
Overview
adds support for the following options:
:stream :: whether the request to process should be handled as a stream (defaults to false). :stream_response_class :: Class used to build the stream response object.
Instance Method Summary collapse
Instance Method Details
#extend_with_plugin_classes(pl) ⇒ Object
143 144 145 146 147 148 149 150 151 |
# File 'lib/httpx/plugins/stream.rb', line 143 def extend_with_plugin_classes(pl) return super unless defined?(pl::StreamResponseMethods) @stream_response_class = @stream_response_class.dup Options::SET_TEMPORARY_NAME[@stream_response_class, pl] @stream_response_class.__send__(:include, pl::StreamResponseMethods) if defined?(pl::StreamResponseMethods) super end |