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

HTTP 2 Frame Information (including buffer) More...

#include <Http2Frame.h>

Public Types

using Ptr = std::unique_ptr<Http2Frame>
 

Public Member Functions

 Http2Frame (size_t frame_size)
 
char * getFrameBuffer () const
 
size_t getFrameLength () const
 
char * getFrameContentBuffer () const
 
size_t getFrameContentLength () const
 
void buildFrameHeader () const
 Build frame header based on existing information.
 

Public Attributes

uint32_t length
 
uint8_t type
 
uint8_t flags
 
uint32_t ident
 
std::unique_ptr< char[]> frame
 

Detailed Description

HTTP 2 Frame Information (including buffer)

Member Typedef Documentation

◆ Ptr

using sese::net::http::Http2Frame::Ptr = std::unique_ptr<Http2Frame>

Constructor & Destructor Documentation

◆ Http2Frame()

Http2Frame::Http2Frame ( size_t frame_size)
explicit

Member Function Documentation

◆ buildFrameHeader()

void Http2Frame::buildFrameHeader ( ) const

Build frame header based on existing information.

References flags, getFrameBuffer(), ident, length, ToBigEndian32(), and type.

◆ getFrameBuffer()

char * Http2Frame::getFrameBuffer ( ) const
nodiscard

Get buffer including frame header

Returns
Buffer

References frame.

Referenced by buildFrameHeader().

◆ getFrameContentBuffer()

char * Http2Frame::getFrameContentBuffer ( ) const
nodiscard

Get buffer excluding frame header

Returns
Buffer

References frame.

◆ getFrameContentLength()

size_t Http2Frame::getFrameContentLength ( ) const
nodiscard

Get buffer length excluding frame header

Returns
Buffer length

References length.

◆ getFrameLength()

size_t Http2Frame::getFrameLength ( ) const
nodiscard

Get buffer length including frame header

Returns
Buffer length

References length.

Member Data Documentation

◆ flags

uint8_t sese::net::http::Http2Frame::flags

Referenced by buildFrameHeader().

◆ frame

std::unique_ptr<char []> sese::net::http::Http2Frame::frame

◆ ident

uint32_t sese::net::http::Http2Frame::ident

Referenced by buildFrameHeader().

◆ length

uint32_t sese::net::http::Http2Frame::length

◆ type

uint8_t sese::net::http::Http2Frame::type

Referenced by buildFrameHeader().


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