class HTTP2::Connection
- HTTP2::Connection
- Reference
- Object
Defined in:
http2.crConstant Summary
-
DEFAULTS =
{initial_window_size: 65536_u32}
-
PREFACE =
"PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n".to_slice
Constructors
Instance Method Summary
- #closed?
- #delete_stream(id)
- #flush
- #hpack_encode(headers : HTTP::Headers)
- #start_client(&block : Connection, Stream, Frame -> )
- #start_server(&block : Connection, Stream, Frame -> )
- #stream(id)
- #stream
- #write_frame(frame : Frame)
Constructor Detail
def self.new(socket : IO, initial_window_size : Atomic(UInt32) = Atomic(UInt32).new(DEFAULTS[:initial_window_size]), window_size : Atomic(UInt32) = initial_window_size)
#