class

HT2::Server

Inherits Reference < Object

Constructors

new(host : String, port : Int32, handler : Handler, enable_h2c : Bool = false, enable_push : Bool = false, h2c_upgrade_timeout : Time::Span = 10.seconds, header_table_size : UInt32 = DEFAULT_HEADER_TABLE_SIZE, initial_window_size : UInt32 = DEFAULT_INITIAL_WINDOW_SIZE, max_concurrent_streams : UInt32 = DEFAULT_MAX_CONCURRENT_STREAMS, max_frame_size : UInt32 = DEFAULT_MAX_FRAME_SIZE, max_header_list_size : UInt32 = DEFAULT_MAX_HEADER_LIST_SIZE, max_workers : Int32 = 100, tls_context : OpenSSL::SSL::Context::Server | Nil = nil, worker_queue_size : Int32 = 1000)
Source

Class methods

create_tls_context(cert_path : String, key_path : String) : OpenSSL::SSL::Context::Server

Helper method to create TLS context with HTTP/2 support

Source

Instance methods

close
Source
enable_h2c?
Source
enable_push?
Source
h2c_upgrade_timeout
Source
handler
Source
header_table_size
Source
host
Source
initial_window_size
Source
listen
Source
max_concurrent_streams
Source
max_frame_size
Source
max_header_list_size
Source
max_workers
Source
port
Source
tls_context
Source
worker_pool_active_count

Worker pool monitoring

Source
worker_pool_queue_depth
Source
worker_queue_size
Source

Nested types