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

Name

Thrown on

std::runtime_error

if 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

Name

Description

reader [in]

A LineReader object constructed over a span of data.

Created with MrDocs