Method: HTTPX::Connection::HTTP2#initialize

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

#initialize(buffer, options) ⇒ HTTP2

Returns a new instance of HTTP2.



35
36
37
38
39
40
41
42
43
44
# File 'lib/httpx/connection/http2.rb', line 35

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