Method: H2::Server::HTTP#initialize

Defined in:
lib/h2/server.rb

#initialize(host:, port:, **options, &on_connection) ⇒ HTTP

create a new h2c server



77
78
79
80
81
# File 'lib/h2/server.rb', line 77

def initialize host:, port:, **options, &on_connection
  @tcpserver = Celluloid::IO::TCPServer.new host, port
  options.merge! host: host, port: port
  super @tcpserver, options, &on_connection
end