MySQL 8.4.2
Source Code Documentation
http::base::Headers Class Reference

headers of a HTTP response/request. More...

#include <headers.h>

Public Types

using Map = std::vector< std::pair< std::string, std::string > >
 
using Iterator = Map::iterator
 
using CIterator = Map::const_iterator
 

Public Member Functions

 Headers ()
 
 Headers (Headers &&h)
 
virtual ~Headers ()
 
virtual void add (const std::string_view &key, std::string &&value)
 
virtual const std::string * find (const std::string_view &) const
 
virtual const char * find_cstr (const char *) const
 
virtual Iterator begin ()
 
virtual Iterator end ()
 
virtual CIterator begin () const
 
virtual CIterator end () const
 
virtual uint32_t size () const
 
virtual void clear ()
 

Private Member Functions

void remove (const std::string_view &key)
 

Private Attributes

Map map_
 

Detailed Description

headers of a HTTP response/request.

Member Typedef Documentation

◆ CIterator

using http::base::Headers::CIterator = Map::const_iterator

◆ Iterator

using http::base::Headers::Iterator = Map::iterator

◆ Map

using http::base::Headers::Map = std::vector<std::pair<std::string, std::string> >

Constructor & Destructor Documentation

◆ Headers() [1/2]

http::base::Headers::Headers ( )
default

◆ Headers() [2/2]

http::base::Headers::Headers ( Headers &&  h)

◆ ~Headers()

http::base::Headers::~Headers ( )
virtual

Member Function Documentation

◆ add()

void http::base::Headers::add ( const std::string_view &  key,
std::string &&  value 
)
virtual

◆ begin() [1/2]

Headers::Iterator http::base::Headers::begin ( )
virtual

◆ begin() [2/2]

Headers::CIterator http::base::Headers::begin ( ) const
virtual

◆ clear()

void http::base::Headers::clear ( )
virtual

◆ end() [1/2]

Headers::Iterator http::base::Headers::end ( )
virtual

◆ end() [2/2]

Headers::CIterator http::base::Headers::end ( ) const
virtual

◆ find()

const std::string * http::base::Headers::find ( const std::string_view &  key) const
virtual

◆ find_cstr()

const char * http::base::Headers::find_cstr ( const char *  key) const
virtual

◆ remove()

void http::base::Headers::remove ( const std::string_view &  key)
private

◆ size()

uint32_t http::base::Headers::size ( ) const
virtual

Member Data Documentation

◆ map_

Map http::base::Headers::map_
mutableprivate

The documentation for this class was generated from the following files: