CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
http2::ClientParser Class Reference

#include <http2_parser.h>

Inherits http2::Parser.

Public Member Functions

 ClientParser (::http::ResponseProcessor &proc_)
 
void send_structured_request (llhttp_method method, const std::string &route, const ccf::http::HeaderMap &headers, std::span< const uint8_t > body)
 
void handle_completed (StreamId stream_id, StreamData *stream_data) override
 
- Public Member Functions inherited from http2::Parser
 Parser (const ccf::http::ParserConfiguration &configuration_, bool is_client=false)
 
virtual ~Parser ()
 
StreamId get_last_stream_id () const override
 
ccf::http::ParserConfiguration get_configuration () const override
 
void set_outgoing_data_handler (DataHandlerCB &&cb)
 
void store_stream (StreamId stream_id, const std::shared_ptr< StreamData > &stream_data)
 
std::shared_ptr< StreamDataget_stream (StreamId stream_id) override
 
std::shared_ptr< StreamDatacreate_stream (StreamId stream_id) override
 
void destroy_stream (StreamId stream_id) override
 
bool execute (const uint8_t *data, size_t size)
 
void send_all_submitted ()
 
- Public Member Functions inherited from http2::AbstractParser
virtual ~AbstractParser ()=default
 

Additional Inherited Members

- Protected Attributes inherited from http2::Parser
std::map< StreamId, std::shared_ptr< StreamData > > streams
 
nghttp2_session * session
 

Constructor & Destructor Documentation

◆ ClientParser()

http2::ClientParser::ClientParser ( ::http::ResponseProcessor proc_)
inline

Member Function Documentation

◆ handle_completed()

void http2::ClientParser::handle_completed ( StreamId  stream_id,
StreamData stream_data 
)
inlineoverridevirtual

Implements http2::AbstractParser.

◆ send_structured_request()

void http2::ClientParser::send_structured_request ( llhttp_method  method,
const std::string &  route,
const ccf::http::HeaderMap headers,
std::span< const uint8_t >  body 
)
inline

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