Module: HTTPX::Plugins::StreamBidi

Defined in:
lib/httpx/plugins/stream_bidi.rb

Overview

This plugin adds support for bidirectional HTTP/2 streams.

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) ⇒ Object



179
180
181
# File 'lib/httpx/plugins/stream_bidi.rb', line 179

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

.load_dependencies(klass) ⇒ Object



175
176
177
# File 'lib/httpx/plugins/stream_bidi.rb', line 175

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