boost::burl::fields_base::field_view

A view to an HTTP field.

Synopsis

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

field_view [constructor]

Constructor.

Data Members

Name

Description

id

The field name constant

name

A view to the field name, as stored

value

A view to the field value

Friends

Name

Description

boost::burl::fields_base

An order‐preserving container of HTTP fields.

Created with MrDocs