|
Nexus HTTP/3
A QUIC and HTTP/3 library
|
an immutable key/value pair to represent a single header More...
#include <nexus/h3/fields.hpp>
Public Member Functions | |
| field (const field &)=delete | |
| field & | operator= (const field &)=delete |
| std::string_view | name () const |
| return a view of the field name | |
| std::string_view | value () const |
| return a view of the field value | |
| void | never_index (bool value) |
| enable or disable the caching of this field for header compression | |
| bool | never_index () const |
| return whether or not this field can be cached for header compression | |
| const char * | c_str () const |
| return a null-terminated string of the form "<name>: <value>" | |
| const char * | data () const |
| return a null-terminated string of the form "<name>: <value>" | |
| size_type | size () const |
| return the string length of c_str() | |
an immutable key/value pair to represent a single header