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

#include <HTTPMessageParser.h>

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

Public Member Functions

virtual void OnBodyData (const void *a_Data, size_t a_Size)=0
 Called for each chunk of the incoming body data. More...
 
virtual void OnBodyFinished (void)=0
 Called when the entire body has been reported by OnBodyData(). More...
 
virtual void OnError (const AString &a_ErrorDescription)=0
 Called when an error has occured while parsing. More...
 
virtual void OnFirstLine (const AString &a_FirstLine)=0
 Called when the first line of the request or response is fully parsed. More...
 
virtual void OnHeaderLine (const AString &a_Key, const AString &a_Value)=0
 Called when a single header line is parsed. More...
 
virtual void OnHeadersFinished (void)=0
 Called when all the headers have been parsed. More...
 
virtual ~cCallbacks ()
 

Detailed Description

Definition at line 25 of file HTTPMessageParser.h.

Constructor & Destructor Documentation

◆ ~cCallbacks()

virtual cHTTPMessageParser::cCallbacks::~cCallbacks ( )
inlinevirtual

Definition at line 29 of file HTTPMessageParser.h.

Member Function Documentation

◆ OnBodyData()

virtual void cHTTPMessageParser::cCallbacks::OnBodyData ( const void *  a_Data,
size_t  a_Size 
)
pure virtual

Called for each chunk of the incoming body data.

Implemented in cHttpSchemeHandler, and cHTTPServerConnection.

◆ OnBodyFinished()

virtual void cHTTPMessageParser::cCallbacks::OnBodyFinished ( void  )
pure virtual

Called when the entire body has been reported by OnBodyData().

Implemented in cHttpSchemeHandler, and cHTTPServerConnection.

◆ OnError()

virtual void cHTTPMessageParser::cCallbacks::OnError ( const AString a_ErrorDescription)
pure virtual

Called when an error has occured while parsing.

Implemented in cHttpSchemeHandler, and cHTTPServerConnection.

◆ OnFirstLine()

virtual void cHTTPMessageParser::cCallbacks::OnFirstLine ( const AString a_FirstLine)
pure virtual

Called when the first line of the request or response is fully parsed.

Doesn't check the validity of the line, only extracts the first complete line.

Implemented in cHttpSchemeHandler, and cHTTPServerConnection.

◆ OnHeaderLine()

virtual void cHTTPMessageParser::cCallbacks::OnHeaderLine ( const AString a_Key,
const AString a_Value 
)
pure virtual

Called when a single header line is parsed.

Implemented in cHttpSchemeHandler, and cHTTPServerConnection.

◆ OnHeadersFinished()

virtual void cHTTPMessageParser::cCallbacks::OnHeadersFinished ( void  )
pure virtual

Called when all the headers have been parsed.

Implemented in cHttpSchemeHandler, and cHTTPServerConnection.


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