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.
Sets the HTTP message header size limit. This will reset the parse state and clear the content.
Sets the limit for the number of HTTP message header lines.
Parses content which is expected to be either the start of a HTTP message or a HTTP message fragment that continues the content passed on the last call to this method. Appends the slice of content which is part of the HTTP message header (that is, everything before the end-of-header token "\r\n\r\n" or content itself if it does not contain that token). After the end of the message header has been reached, which is indicated by a non-null return value, reset() must be called before calling this method again. Leading empty header lines are tolerated and ignored:
Resets the parse state and clears the content.
Default values for header size limitation
Default values for header size limitation
Object pool index -- allows the construction of a pool of objects of this type.
Start line tokens; slice the internal content buffer
Header element
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.
Sets the limit for the number of HTTP message header lines.
Sets the HTTP message header size limit. This will reset the parse state and clear the content.
HttpHeaderParser class