Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 0d0642aa30.
PrevUpHomeNext
http::header::set (1 of 4 overloads)

(Inherited from http::basic_fields)

Set a field value, removing any other instances of that field.

Synopsis
void
set(
    field name,
    string_view const& value);
Description

First removes any values with matching field names, then inserts the new field value. The value may be an empty string.

Parameters

Name

Description

name

The field name.

value

The value of the field, as a boost::beast::string_view

Return Value

The field value.


PrevUpHomeNext