| Home | Libraries | People | FAQ | More

###### http::basic_fields::insert (3 of 3 overloads)

Insert a field.

<h7> Synopsis </h7>

    void
    insert(
        field name,
        string_view name_string,
        string_param const& value);

<h7> Description </h7>

If one or more fields with the same name already exist, the new field will be inserted after the last field with the matching name, in serialization order.

<h7> Parameters </h7>

Name | Description
--- | ---
`name` | The field name.
`name_string` | The literal text corresponding to the field name. If `name != field::unknown`, then this value must be equal to `to_string(name)` using a case-insensitive comparison, otherwise the behavior is undefined.
`value` | The value of the field, as a `string_param`