Nexus HTTP/3
A QUIC and HTTP/3 library
Classes | Public Member Functions | List of all members
nexus::h3::field Class Reference

an immutable key/value pair to represent a single header More...

#include <nexus/h3/fields.hpp>

Inheritance diagram for nexus::h3::field:

Public Member Functions

 field (const field &)=delete
 
fieldoperator= (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()
 

Detailed Description

an immutable key/value pair to represent a single header