Module headers

Source

Enums§

RequestHeaderError

Functions§

connection_type
Returns the value of Connection header if available
contains_full_headers
Returns size of header end position if header ends with “\r\n\r\n”
content_length
Returns content length from the Header if available
extract_content_type
Returns Content-Type value from the header if available
extract_headers
It will try to read headers from the tcp stream. Returns type RequestHeaderError if failed to extract headers.
host
Returns Host value from the Header if available.
parse_header
Returns key value pair from the header line
parse_request_method_header
Returns the request method and raw path from the header line if matched
query_params_from_raw
Returns map of url encoded key values Example: /search?name=John&age=22

Type Aliases§

Headers