Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::http::DynamicTable Class Reference

HTTP 2 dynamic table. More...

#include <DynamicTable.h>

Public Types

using Header = std::pair<std::string, std::string>
 

Public Member Functions

 DynamicTable (size_t max=4096) noexcept
 
virtual ~DynamicTable () noexcept=default
 
void resize (size_t max) noexcept
 
size_t getMaxSize () const noexcept
 
size_t getCount () const noexcept
 
size_t getSize () const noexcept
 
bool set (const std::string &key, const std::string &value) noexcept
 
std::optional< Headerget (size_t index) const noexcept
 
auto begin () const
 
auto end () const
 

Protected Attributes

size_t max
 
size_t size = 0
 
std::deque< Headerqueue
 

Detailed Description

HTTP 2 dynamic table.

Member Typedef Documentation

◆ Header

using sese::net::http::DynamicTable::Header = std::pair<std::string, std::string>

Constructor & Destructor Documentation

◆ DynamicTable()

DynamicTable::DynamicTable ( size_t max = 4096)
explicitnoexcept

◆ ~DynamicTable()

virtual sese::net::http::DynamicTable::~DynamicTable ( )
virtualdefaultnoexcept

Member Function Documentation

◆ begin()

auto sese::net::http::DynamicTable::begin ( ) const
inlinenodiscard

References queue.

◆ end()

auto sese::net::http::DynamicTable::end ( ) const
inlinenodiscard

References queue.

◆ get()

std::optional< DynamicTable::Header > DynamicTable::get ( size_t index) const
nodiscardnoexcept

◆ getCount()

size_t sese::net::http::DynamicTable::getCount ( ) const
inlinenodiscardnoexcept

References queue.

◆ getMaxSize()

size_t sese::net::http::DynamicTable::getMaxSize ( ) const
inlinenodiscardnoexcept

References max.

◆ getSize()

size_t sese::net::http::DynamicTable::getSize ( ) const
inlinenodiscardnoexcept

References size.

◆ resize()

void DynamicTable::resize ( size_t max)
noexcept

◆ set()

bool DynamicTable::set ( const std::string & key,
const std::string & value )
noexcept

Member Data Documentation

◆ max

size_t sese::net::http::DynamicTable::max
protected

Referenced by getMaxSize().

◆ queue

std::deque<Header> sese::net::http::DynamicTable::queue
protected

Referenced by begin(), end(), and getCount().

◆ size

size_t sese::net::http::DynamicTable::size = 0
protected

Referenced by getSize().


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