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

#include <http_session.h>

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

Public Member Functions

 HTTPServerSession (std::shared_ptr< ccf::RPCMap > rpc_map_, ::tcp::ConnID session_id_, 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_=nullptr)
 
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) override
 
bool send_response (ccf::http_status status_code, ccf::http::HeaderMap &&headers, ccf::http::HeaderMap &&trailers, std::vector< uint8_t > &&body) override
 
- Public Member Functions inherited from ccf::EncryptedSession
void send_data_thread (std::vector< uint8_t > &&data) override
 
void handle_incoming_data_thread (std::vector< uint8_t > &&data) override
 
void close_session_thread () override
 
- Public Member Functions inherited from ccf::ThreadedSession
 ThreadedSession (int64_t session_id)
 
 ~ThreadedSession () override
 
void handle_incoming_data (std::span< const uint8_t > data) override
 
void send_data (std::vector< uint8_t > &&data) override
 
void close_session () override
 
- Public Member Functions inherited from ccf::Session
virtual ~Session ()=default
 
- Public Member Functions inherited from http::RequestProcessor
virtual ~RequestProcessor ()=default
 
- Public Member Functions inherited from ccf::http::HTTPResponder
virtual ~HTTPResponder ()=default
 
bool send_odata_error_response (ccf::ErrorDetails &&error)
 

Additional Inherited Members

- 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

◆ HTTPServerSession()

http::HTTPServerSession::HTTPServerSession ( std::shared_ptr< ccf::RPCMap rpc_map_,
::tcp::ConnID  session_id_,
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_ = nullptr 
)
inline

Member Function Documentation

◆ handle_request()

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

◆ parse()

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

Implements ccf::EncryptedSession.

◆ send_response()

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

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