libhttppp ..
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
libhttppp::HttpEvent Class Reference
Inheritance diagram for libhttppp::HttpEvent:
Inheritance graph
[legend]
Collaboration diagram for libhttppp::HttpEvent:
Collaboration graph
[legend]

Public Member Functions

 HttpEvent (std::vector< netplus::socket * > serversocket, int timeout=1000)
 
virtual void RequestEvent (HttpRequest &curreq, const int tid, ULONG_PTR args)
 
virtual void ResponseEvent (HttpRequest &curreq, const int tid, ULONG_PTR args)
 
virtual void ConnectEvent (HttpRequest &curreq, const int tid, ULONG_PTR args)
 
virtual void DisconnectEvent (HttpRequest &curreq, const int tid, ULONG_PTR args)
 
virtual bool Http2RequestEvent (netplus::con &curcon, const int tid, ULONG_PTR args, const std::string &alpn, const netplus::ssl::FramingCallback &frame_cb)
 
virtual void Http3StreamEvent (netplus::socket *sock, uint64_t stream_id, const std::vector< uint8_t > &data, bool fin)
 
virtual bool onH2StreamHeaders (HttpRequest &conn, uint32_t streamId, const std::vector< hpack::HeaderField > &headers)
 
virtual bool onH3StreamHeaders (netplus::socket *sock, uint64_t streamId, const std::vector< qpack::HeaderField > &headers)
 
virtual void onH2DataChunk (HttpRequest &conn, uint32_t streamId, const char *data, size_t len, bool endStream, std::string &h2out, const int tid, ULONG_PTR args)
 
virtual void onH3DataChunk (netplus::socket *sock, uint64_t streamId, const char *data, size_t len, bool fin)
 

Protected Member Functions

void sendH2StreamResponse (std::string &h2out, uint32_t streamId, uint16_t status, const std::string &contentType, const std::string &body)
 
void sendH3StreamResponse (netplus::socket *sock, uint64_t streamId, uint16_t status, const std::string &contentType, const std::string &body)
 
virtual void CreateConnection (std::shared_ptr< netplus::con > &res)
 
virtual void RequestEvent (netplus::con &curcon, const int tid, ULONG_PTR args)
 
virtual void ResponseEvent (netplus::con &curcon, const int tid, ULONG_PTR args)
 
virtual void ConnectEvent (netplus::con &curcon, const int tid, ULONG_PTR args)
 
virtual void DisconnectEvent (netplus::con &curcon, const int tid, ULONG_PTR args)
 

Protected Attributes

std::string _altSvcH3
 
netplus::TlsSessionCache _tlsSessionCache
 

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