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)
SourceClass methods
create_tls_context(cert_path : String, key_path : String) : OpenSSL::SSL::Context::Server
Helper method to create TLS context with HTTP/2 support
Instance methods
close
Sourceenable_h2c?
Sourceenable_push?
Sourceh2c_upgrade_timeout
Sourcehandler
Sourceheader_table_size
Sourcehost
Sourceinitial_window_size
Sourcelisten
Sourcemax_concurrent_streams
Sourcemax_frame_size
Sourcemax_header_list_size
Sourcemax_workers
Sourceport
Sourcetls_context
Sourceworker_pool_queue_depth
Sourceworker_queue_size
Source