Class: Plum::HTTPServerConnection

Inherits:
ServerConnection show all
Defined in:
lib/plum/server/http_connection.rb

Constant Summary

Constants inherited from Connection

Connection::CLIENT_CONNECTION_PREFACE, Connection::DEFAULT_SETTINGS

Instance Attribute Summary

Attributes inherited from Connection

#hpack_decoder, #hpack_encoder, #local_settings, #remote_settings, #state, #streams

Attributes included from FlowControl

#recv_remaining_window, #send_remaining_window

Instance Method Summary collapse

Methods inherited from ServerConnection

#reserve_stream

Methods inherited from Connection

#close, #receive, #stream

Methods included from ConnectionUtils

#goaway, #ping, #push_enabled?, #settings

Methods included from FlowControl

#send, #window_update

Methods included from EventEmitter

#callback, #on

Constructor Details

#initialize(writer, local_settings = {}) ⇒ HTTPServerConnection

Returns a new instance of HTTPServerConnection.



6
7
8
9
10
11
# File 'lib/plum/server/http_connection.rb', line 6

def initialize(writer, local_settings = {})
  require "http/parser"
  @negobuf = String.new
  @_http_parser = setup_parser
  super(writer, local_settings)
end