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

#include <http2_session.h>

Inherits ccf::EncryptedSession, http::RequestProcessor, and ccf::http::HTTPResponder.

Public Member Functions

 HTTP2ServerSession (std::shared_ptr< ccf::RPCMap > rpc_map, int64_t session_id_, const ccf::ListenInterfaceID &interface_id, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx, const ccf::http::ParserConfiguration &configuration, const std::shared_ptr< ErrorReporter > &error_reporter, http::ResponderLookup &responder_lookup_)
 
 ~HTTP2ServerSession ()
 
bool parse (std::span< const uint8_t > data) override
 
void handle_request (llhttp_method verb, const std::string_view &url, ccf::http::HeaderMap &&headers, std::vector< uint8_t > &&body, int32_t stream_id) override
 
bool send_response (ccf::http_status status_code, ccf::http::HeaderMap &&headers, ccf::http::HeaderMap &&trailers, std::span< const uint8_t > body) override
 
bool start_stream (ccf::http_status status, const ccf::http::HeaderMap &headers) override
 
bool stream_data (std::span< const uint8_t > data) override
 
bool close_stream (ccf::http::HeaderMap &&trailers) override
 
bool set_on_stream_close_callback (ccf::http::StreamOnCloseCallback cb) override
 
- Public Member Functions inherited from ccf::EncryptedSession
void send_data (std::span< const uint8_t > data) override
 
void send_data_thread (std::vector< uint8_t > &&data) override
 
void close_session () override
 
void handle_incoming_data_thread (std::vector< uint8_t > &&data) override
 
- Public Member Functions inherited from ccf::ThreadedSession
 ThreadedSession (int64_t thread_affinity)
 
void handle_incoming_data (std::span< const uint8_t > data) override
 
void send_data (std::span< const uint8_t > data) override
 
- Public Member Functions inherited from ccf::Session
virtual ~Session ()=default
 
- Public Member Functions inherited from ccf::http::HTTPResponder
virtual ~HTTPResponder ()=default
 
bool send_odata_error_response (ccf::ErrorDetails &&error)
 

Additional Inherited Members

- Static Public Member Functions inherited from ccf::ThreadedSession
static void handle_incoming_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg)
 
static void send_data_cb (std::unique_ptr<::threading::Tmsg< SendRecvMsg > > msg)
 
- Protected Member Functions inherited from ccf::EncryptedSession
 EncryptedSession (::tcp::ConnID session_id_, ringbuffer::AbstractWriterFactory &writer_factory, std::unique_ptr< ccf::tls::Context > ctx)
 
- Protected Attributes inherited from ccf::EncryptedSession
std::shared_ptr< ccf::TLSSessiontls_io
 
::tcp::ConnID session_id
 

Constructor & Destructor Documentation

◆ HTTP2ServerSession()

http::HTTP2ServerSession::HTTP2ServerSession ( std::shared_ptr< ccf::RPCMap rpc_map,
int64_t  session_id_,
const ccf::ListenInterfaceID interface_id,
ringbuffer::AbstractWriterFactory writer_factory,
std::unique_ptr< ccf::tls::Context ctx,
const ccf::http::ParserConfiguration configuration,
const std::shared_ptr< ErrorReporter > &  error_reporter,
http::ResponderLookup responder_lookup_ 
)
inline

◆ ~HTTP2ServerSession()

http::HTTP2ServerSession::~HTTP2ServerSession ( )
inline

Member Function Documentation

◆ close_stream()

bool http::HTTP2ServerSession::close_stream ( ccf::http::HeaderMap &&  trailers)
inlineoverridevirtual

◆ handle_request()

void http::HTTP2ServerSession::handle_request ( llhttp_method  verb,
const std::string_view &  url,
ccf::http::HeaderMap &&  headers,
std::vector< uint8_t > &&  body,
int32_t  stream_id 
)
inlineoverridevirtual

◆ parse()

bool http::HTTP2ServerSession::parse ( std::span< const uint8_t >  data)
inlineoverridevirtual

Implements ccf::EncryptedSession.

◆ send_response()

bool http::HTTP2ServerSession::send_response ( ccf::http_status  status_code,
ccf::http::HeaderMap &&  headers,
ccf::http::HeaderMap &&  trailers,
std::span< const uint8_t >  body 
)
inlineoverridevirtual

◆ set_on_stream_close_callback()

bool http::HTTP2ServerSession::set_on_stream_close_callback ( ccf::http::StreamOnCloseCallback  cb)
inlineoverridevirtual

◆ start_stream()

bool http::HTTP2ServerSession::start_stream ( ccf::http_status  status,
const ccf::http::HeaderMap headers 
)
inlineoverridevirtual

◆ stream_data()

bool http::HTTP2ServerSession::stream_data ( std::span< const uint8_t >  data)
inlineoverridevirtual

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