Module: HTTPX::Plugins::StreamBidi

Defined in:
lib/httpx/plugins/stream_bidi.rb,
sig/plugins/stream_bidi.rbs

Overview

This plugin adds support for bidirectional HTTP/2 streams.

https://gitlab.com/os85/httpx/wikis/StreamBidi

It is required that the request body allows chunk to be buffered, (i.e., responds to #<<(chunk)).

Defined Under Namespace

Modules: ConnectionMethods, HTTP2Methods, InstanceMethods, RequestBodyMethods, RequestMethods Classes: BidiBuffer, Signal

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Options

Parameters:

Returns:



222
223
224
# File 'lib/httpx/plugins/stream_bidi.rb', line 222

def extra_options(options)
  options.merge(fallback_protocol: "h2")
end

.load_dependencies(klass) ⇒ void

This method returns an undefined value.

Parameters:



218
219
220
# File 'lib/httpx/plugins/stream_bidi.rb', line 218

def load_dependencies(klass)
  klass.plugin(:stream)
end