Parse an HTTP headers section from a line reader.
Synopsis
Declared in <httpserver.h>
bool
Read(
util::LineReader& reader,
bool write = true);
Return Value
false if LineReader hits the end of the buffer before reading an , meaning that we are still waiting on more data from the client. true after reading an entire HTTP headers section, terminated by an empty line and . Throws on an exceeded read limit and on bad headers syntax (e.g. no ":" in a line).
Parameters
Name |
Description |
reader [in] |
A LineReader instance initialized with the client's receive buffer. |
write [in] |
Whether or not to write the parsed data to the object after validation. |
Created with MrDocs