boost::http_proto::fields_base::set
Set a header value
Synopsis
system::result<void>
set(
core::string_view name,
core::string_view value);
Description
Uses the given value to overwrite the current one in the header field pointed to by the iterator. The value must be syntactically valid or else an error is returned. Any leading or trailing whitespace in the new value is ignored.
Parameters
Name | Description |
---|---|
it |
An iterator to the header. |
value |
A value, which must be semantically valid for the message. |
id |
The field constant of the header to set. |
name |
The field name. |
Created with MrDocs