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

#include <http2_parser.h>

Inherits http2::Parser.

Public Member Functions

 ServerParser (http::RequestProcessor &proc_, const ccf::http::ParserConfiguration &configuration_)
 
void set_on_stream_close_callback (StreamId stream_id, StreamCloseCB cb)
 
void respond (StreamId stream_id, ccf::http_status status, const ccf::http::HeaderMap &headers, ccf::http::HeaderMap &&trailers, std::span< const uint8_t > body)
 
void start_stream (StreamId stream_id, ccf::http_status status, const ccf::http::HeaderMap &headers)
 
void send_data (StreamId stream_id, std::span< const uint8_t > data)
 
void close_stream (StreamId stream_id, ccf::http::HeaderMap &&trailers)
 
virtual 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

◆ ServerParser()

http2::ServerParser::ServerParser ( http::RequestProcessor proc_,
const ccf::http::ParserConfiguration configuration_ 
)
inline

Member Function Documentation

◆ close_stream()

void http2::ServerParser::close_stream ( StreamId  stream_id,
ccf::http::HeaderMap &&  trailers 
)
inline

◆ handle_completed()

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

Implements http2::AbstractParser.

◆ respond()

void http2::ServerParser::respond ( StreamId  stream_id,
ccf::http_status  status,
const ccf::http::HeaderMap headers,
ccf::http::HeaderMap &&  trailers,
std::span< const uint8_t >  body 
)
inline

◆ send_data()

void http2::ServerParser::send_data ( StreamId  stream_id,
std::span< const uint8_t >  data 
)
inline

◆ set_on_stream_close_callback()

void http2::ServerParser::set_on_stream_close_callback ( StreamId  stream_id,
StreamCloseCB  cb 
)
inline

◆ start_stream()

void http2::ServerParser::start_stream ( StreamId  stream_id,
ccf::http_status  status,
const ccf::http::HeaderMap headers 
)
inline

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