boost::http_proto::fields_base::set

Set a header value

Synopses

Set a header value

system::result<void>
set(
    field id,
    core::string_view value);

Set a header value

system::result<void>
set(
    iterator it,
    core::string_view value);

Set a header value

system::result<void>
set(
    core::string_view name,
    core::string_view value);

Return Value

The error, if any occurred.

Parameters

Name

Description

id

The field constant of the header to set.

value

A value, which must be semantically valid for the message.

it

An iterator to the header.

name

The field name.

Created with MrDocs