Method: HTTPX::Connection::HTTP2#initialize

Defined in:
lib/httpx/connection/http2.rb

#initialize(buffer, options) ⇒ HTTP2

Returns a new instance of HTTP2.



19
20
21
22
23
24
25
26
27
28
# File 'lib/httpx/connection/http2.rb', line 19

def initialize(buffer, options)
  @options = Options.new(options)
  @max_concurrent_requests = @options.max_concurrent_requests
  @pending = []
  @streams = {}
  @drains  = {}
  @buffer = buffer
  @handshake_completed = false
  init_connection
end