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.

Methods

Public Instance

  1. extend_with_plugin_classes

Public Instance methods

extend_with_plugin_classes(pl)
[show source]
    # File lib/httpx/plugins/stream.rb
143 def extend_with_plugin_classes(pl)
144   return super unless defined?(pl::StreamResponseMethods)
145 
146   @stream_response_class = @stream_response_class.dup
147   Options::SET_TEMPORARY_NAME[@stream_response_class, pl]
148   @stream_response_class.__send__(:include, pl::StreamResponseMethods) if defined?(pl::StreamResponseMethods)
149 
150   super
151 end