Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | List of all members
cHTTPServer::cCallbacks Class Referenceabstract

#include <HTTPServer.h>

Inheritance diagram for cHTTPServer::cCallbacks:
Inheritance graph
[legend]

Public Member Functions

virtual void OnRequestBegun (cHTTPServerConnection &a_Connection, cHTTPIncomingRequest &a_Request)=0
 Called when a new request arrives over a connection and all its headers have been parsed. More...
 
virtual void OnRequestBody (cHTTPServerConnection &a_Connection, cHTTPIncomingRequest &a_Request, const char *a_Data, size_t a_Size)=0
 Called when another part of request body has arrived. More...
 
virtual void OnRequestFinished (cHTTPServerConnection &a_Connection, cHTTPIncomingRequest &a_Request)=0
 Called when the request body has been fully received in previous calls to OnRequestBody() More...
 
virtual ~cCallbacks ()
 

Detailed Description

Definition at line 33 of file HTTPServer.h.

Constructor & Destructor Documentation

◆ ~cCallbacks()

virtual cHTTPServer::cCallbacks::~cCallbacks ( )
inlinevirtual

Definition at line 36 of file HTTPServer.h.

Member Function Documentation

◆ OnRequestBegun()

virtual void cHTTPServer::cCallbacks::OnRequestBegun ( cHTTPServerConnection a_Connection,
cHTTPIncomingRequest a_Request 
)
pure virtual

Called when a new request arrives over a connection and all its headers have been parsed.

The request body needn't have arrived yet.

Implemented in cWebAdmin.

◆ OnRequestBody()

virtual void cHTTPServer::cCallbacks::OnRequestBody ( cHTTPServerConnection a_Connection,
cHTTPIncomingRequest a_Request,
const char *  a_Data,
size_t  a_Size 
)
pure virtual

Called when another part of request body has arrived.

May be called multiple times for a single request.

Implemented in cWebAdmin.

◆ OnRequestFinished()

virtual void cHTTPServer::cCallbacks::OnRequestFinished ( cHTTPServerConnection a_Connection,
cHTTPIncomingRequest a_Request 
)
pure virtual

Called when the request body has been fully received in previous calls to OnRequestBody()

Implemented in cWebAdmin.


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