boost::http_proto::fields_base::set

Set a header value.

Synopses

Set a header value.

void
set(
    field id,
    core::string_view value);

Set a header value.

void
set(
    iterator it,
    core::string_view value);

Set a header value.

void
set(
    core::string_view name,
    core::string_view value);

Set a header value.

void
set(
    field id,
    core::string_view value,
    system::error_code& ec);

Set a header value.

void
set(
    iterator it,
    core::string_view value,
    system::error_code& ec);

Set a header value.

void
set(
    core::string_view name,
    core::string_view value,
    system::error_code& ec);

Exceptions

Name

Thrown on

system_error

Input is invalid.

std::length_error

Max capacity would be exceeded.

Parameters

Name

Description

id

The field constant of the header to set.

value

The value which must be semantically valid for the message.

it

The iterator to the header.

name

The field name.

ec

Set to the error if input is invalid.

Created with MrDocs