class HTTP2::Connection

Defined in:

http2.cr

Constant 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

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) #

[View source]

Instance Method Detail

def closed? #

[View source]
def delete_stream(id) #

[View source]
def flush #

[View source]
def hpack_encode(headers : HTTP::Headers) #

[View source]
def start_client(&block : Connection, Stream, Frame -> ) #

[View source]
def start_server(&block : Connection, Stream, Frame -> ) #

[View source]
def stream(id) #

[View source]
def stream #

[View source]
def write_frame(frame : Frame) #

[View source]