struct HTTP1::Connection

Defined in:

duo/server/http1.cr

Constant Summary

MAX_HEADERS_SIZE = 16384

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO) #

[View source]

Instance Method Detail

def content(headers : HTTP::Headers, mandatory = false) : IO | Nil #

[View source]
def flush #

[View source]
def io : IO #

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

[View source]
def read_request_line #

[View source]
def send_data(string : String, chunked = false) #

[View source]
def send_data(bytes : Bytes, chunked = false) #

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

[View source]
def upgrade(protocol : String) #

[View source]
def version : String #

[View source]
def version? : String | Nil #

[View source]