IHttpHeaderParser

Interface for the header parser to get the parse results and set limits

Members

Functions

header_elements
HeaderElement[] header_elements()

Obtains a list of HeaderElement instances referring to the header lines parsed so far. The key member of each element references the slice of the corresponding header line before the first ':', the val member the slice after the first ':'. Leading and tailing white space is trimmed off both key and val.

header_length_limit
size_t header_length_limit(size_t n)

Sets the HTTP message header size limit. This will reset the parse state and clear the content.

header_length_limit
size_t header_length_limit()
header_lines
cstring[] header_lines()
header_lines_limit
size_t header_lines_limit()
header_lines_limit
size_t header_lines_limit(size_t n)

Sets the limit for the number of HTTP message header lines.

Structs

HeaderElement
struct HeaderElement

Header element

Meta