module HTTPX::Plugins::Stream::OptionsMethods

  1. lib/httpx/plugins/stream.rb

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.

Public Instance methods

extend_with_plugin_classes(pl)
[show source]
    # File lib/httpx/plugins/stream.rb
151 def extend_with_plugin_classes(pl)
152   return super unless defined?(pl::StreamResponseMethods)
153 
154   @stream_response_class = @stream_response_class.dup
155   Options::SET_TEMPORARY_NAME[@stream_response_class, pl]
156   @stream_response_class.__send__(:include, pl::StreamResponseMethods) if defined?(pl::StreamResponseMethods)
157 
158   super
159 end
option_stream(val)
[show source]
    # File lib/httpx/plugins/stream.rb
143 def option_stream(val)
144   val
145 end
option_stream_response_class(value)
[show source]
    # File lib/httpx/plugins/stream.rb
147 def option_stream_response_class(value)
148   value
149 end