Module: HTTPX::Plugins::StreamBidi::HTTP2Methods

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

Overview

Extension of the Connection::HTTP2 class, which adds functionality to deal with a request that can’t be drained and must be interleaved with the response streams.

The streams keeps send DATA frames while there’s data; when they’re ain’t, the stream is kept open; it must be explicitly closed by the end user.

Instance Method Summary collapse

Instance Method Details

#initializeObject



20
21
22
23
# File 'lib/httpx/plugins/stream_bidi.rb', line 20

def initialize(*)
  super
  @lock = Thread::Mutex.new
end