boost::burl::fields_base::field_view
A view to an HTTP field.
Synopsis
Declared in <boost/burl/fields_base.hpp>
struct field_view;
Description
Objects of this type are returned when dereferencing an iterator. The views are invalidated when the underlying container is modified.
They are also formed implicitly from the elements of an initializer list when constructing a fields container; the field name may be given as a string or as a field constant:
fields f = {
{ http::field::host, "example.com" },
{ "X-Request-Id", "42" },
};
The caller is responsible for ensuring that the lifetime of the viewed characters extends until the view is no longer referenced.
Member Functions
Name |
Description |
|
Constructor. |
Friends
Name |
Description |
An order‐preserving container of HTTP fields. |
Created with MrDocs