Beast Logo

PrevUpHomeNext

http::request_header

A typical HTTP request header.

using request_header = header< true, fields >;
Types

Name

Description

fields_type

The type representing the fields.

Member Functions

Name

Description

header

Default constructor.

Move constructor.

Copy constructor.

Construct the header.

method

Return the Request Method.

Set the Request Method.

operator=

Move assignment.

Copy assignment.

reason

Return the Reason-Phrase.

Set the Reason-Phrase.

target

Return the Request Target.

Set the Request Target.

Static Data Members

Name

Description

is_request

Indicates if the header is a request or response.

Data Members

Name

Description

fields

The HTTP field values.

status

The Response Status-Code.

version

The HTTP version.

A header includes the Start Line and Fields.

Some use-cases:

Requirements

Header: beast/http/message.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext