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 f2f5b8c8cd.
PrevUpHomeNext
http::basic_fields::set (3 of 4 overloads)

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

Synopsis
void
set(
    string_view name,
    string_view value);
Description

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

Parameters

Name

Description

name

The field name. It is interpreted as a case-insensitive string.

value

The field value.

Exceptions

Type

Thrown On

boost::system::system_error

Thrown if an error occurs:


PrevUpHomeNext