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
147 def extend_with_plugin_classes(pl)
148   return super unless defined?(pl::StreamResponseMethods)
149 
150   @stream_response_class = @stream_response_class.dup
151   Options::SET_TEMPORARY_NAME[@stream_response_class, pl]
152   @stream_response_class.__send__(:include, pl::StreamResponseMethods) if defined?(pl::StreamResponseMethods)
153 
154   super
155 end
option_stream(val)
[show source]
    # File lib/httpx/plugins/stream.rb
139 def option_stream(val)
140   val
141 end
option_stream_response_class(value)
[show source]
    # File lib/httpx/plugins/stream.rb
143 def option_stream_response_class(value)
144   value
145 end