HTTPRequest::LoadControlData

Methods that attempt to parse HTTP request fields line-by-line from a receive buffer.

Synopsis

Declared in <httpserver.h>

bool
LoadControlData(util::LineReader& reader);

Description

@{

Exceptions

NameThrown on
std::runtime_errorif data is invalid.

Return Value

true If the request field was parsed. false If there was not enough data in the buffer to complete the field.

Parameters

NameDescription
reader [in]A LineReader object constructed over a span of data.