Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::http::Http2::State Struct Reference

Public Member Functions

 ~State ()
 
int Fail (absl::Status status)
 
nghttp2_data_provider Provider ()
 

Static Public Member Functions

static ssize_t ReadData (nghttp2_session *, std::int32_t, std::uint8_t *output, std::size_t capacity, std::uint32_t *flags, nghttp2_data_source *source, void *)
 
static int Begin (nghttp2_session *, const nghttp2_frame *frame, void *user)
 
static int Header (nghttp2_session *, const nghttp2_frame *, const std::uint8_t *name, std::size_t nl, const std::uint8_t *value, std::size_t vl, std::uint8_t, void *user)
 
static int Frame (nghttp2_session *, const nghttp2_frame *frame, void *user)
 
static int InvalidFrame (nghttp2_session *, const nghttp2_frame *, int code, void *user)
 
static int StreamClosed (nghttp2_session *, std::int32_t id, std::uint32_t code, void *user)
 
static int Data (nghttp2_session *, std::uint8_t, std::int32_t id, const std::uint8_t *bytes, std::size_t size, void *user)
 

Public Attributes

Role role
 
Limits limits
 
nghttp2_session * session = nullptr
 
std::int32_t stream = 0
 
RequestHead request
 
ResponseHead response
 
Headers block
 
Headers trailers
 
std::size_t header_bytes = 0
 
std::size_t received_bytes = 0
 
std::size_t queued_bytes = 0
 
std::string tx
 
std::size_t offset = 0
 
std::string rx
 
bool head_received = false
 
bool end = false
 
bool finished = false
 
bool sent = false
 
bool duplex = false
 
bool settings = false
 
absl::Status error
 

Constructor & Destructor Documentation

◆ ~State()

symbian::http::Http2::State::~State ( )
inline

Member Function Documentation

◆ Begin()

static int symbian::http::Http2::State::Begin ( nghttp2_session *  ,
const nghttp2_frame *  frame,
void *  user 
)
inlinestatic

◆ Data()

static int symbian::http::Http2::State::Data ( nghttp2_session *  ,
std::uint8_t  ,
std::int32_t  id,
const std::uint8_t *  bytes,
std::size_t  size,
void *  user 
)
inlinestatic

◆ Fail()

int symbian::http::Http2::State::Fail ( absl::Status  status)
inline

◆ Frame()

static int symbian::http::Http2::State::Frame ( nghttp2_session *  ,
const nghttp2_frame *  frame,
void *  user 
)
inlinestatic

◆ Header()

static int symbian::http::Http2::State::Header ( nghttp2_session *  ,
const nghttp2_frame *  ,
const std::uint8_t *  name,
std::size_t  nl,
const std::uint8_t *  value,
std::size_t  vl,
std::uint8_t  ,
void *  user 
)
inlinestatic

◆ InvalidFrame()

static int symbian::http::Http2::State::InvalidFrame ( nghttp2_session *  ,
const nghttp2_frame *  ,
int  code,
void *  user 
)
inlinestatic

◆ Provider()

nghttp2_data_provider symbian::http::Http2::State::Provider ( )
inline

◆ ReadData()

static ssize_t symbian::http::Http2::State::ReadData ( nghttp2_session *  ,
std::int32_t  ,
std::uint8_t *  output,
std::size_t  capacity,
std::uint32_t *  flags,
nghttp2_data_source *  source,
void *   
)
inlinestatic

◆ StreamClosed()

static int symbian::http::Http2::State::StreamClosed ( nghttp2_session *  ,
std::int32_t  id,
std::uint32_t  code,
void *  user 
)
inlinestatic

Member Data Documentation

◆ block

Headers symbian::http::Http2::State::block

◆ duplex

bool symbian::http::Http2::State::duplex = false

◆ end

bool symbian::http::Http2::State::end = false

◆ error

absl::Status symbian::http::Http2::State::error

◆ finished

bool symbian::http::Http2::State::finished = false

◆ head_received

bool symbian::http::Http2::State::head_received = false

◆ header_bytes

std::size_t symbian::http::Http2::State::header_bytes = 0

◆ limits

Limits symbian::http::Http2::State::limits

◆ offset

std::size_t symbian::http::Http2::State::offset = 0

◆ queued_bytes

std::size_t symbian::http::Http2::State::queued_bytes = 0

◆ received_bytes

std::size_t symbian::http::Http2::State::received_bytes = 0

◆ request

RequestHead symbian::http::Http2::State::request

◆ response

ResponseHead symbian::http::Http2::State::response

◆ role

Role symbian::http::Http2::State::role

◆ rx

std::string symbian::http::Http2::State::rx

◆ sent

bool symbian::http::Http2::State::sent = false

◆ session

nghttp2_session* symbian::http::Http2::State::session = nullptr

◆ settings

bool symbian::http::Http2::State::settings = false

◆ stream

std::int32_t symbian::http::Http2::State::stream = 0

◆ trailers

Headers symbian::http::Http2::State::trailers

◆ tx

std::string symbian::http::Http2::State::tx

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