Beast Logo

PrevUpHomeNext

http::header

A container for a HTTP request or response header.

template<
    bool isRequest,
    class Fields>
struct header
Types

Name

Description

fields_type

The type representing the fields.

Member Functions

Name

Description

header

Default constructor.

Move constructor.

Copy constructor.

Construct the header.

operator=

Move assignment.

Copy assignment.

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.

method

The Request Method.

reason

The Response Reason-Phrase.

status

The Response Status-Code.

url

The Request URI.

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