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, InstanceMethods, RequestBodyMethods, RequestMethods Classes: BidiBuffer, HTTP2Bidi, Signal

Class Method Summary collapse

Class Method Details

.extra_options(options) ⇒ Object



171
172
173
# File 'lib/httpx/plugins/stream_bidi.rb', line 171

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

.load_dependencies(klass) ⇒ Object



167
168
169
# File 'lib/httpx/plugins/stream_bidi.rb', line 167

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