summaryrefslogtreecommitdiffstats
path: root/src/HTTPServer/HTTPServer.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-12-25 19:54:04 +0100
committerMattes D <github@xoft.cz>2016-03-01 16:19:55 +0100
commitb92346e3cc517fe2d9f01720110e51cf3ea22c44 (patch)
treed4fe00f0114d53bcd9c637964fdff78aaceee66d /src/HTTPServer/HTTPServer.h
parentRenamed the HTTP classes to indicate they're for server. (diff)
downloadcuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.tar
cuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.tar.gz
cuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.tar.bz2
cuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.tar.lz
cuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.tar.xz
cuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.tar.zst
cuberite-b92346e3cc517fe2d9f01720110e51cf3ea22c44.zip
Diffstat (limited to 'src/HTTPServer/HTTPServer.h')
-rw-r--r--src/HTTPServer/HTTPServer.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/HTTPServer/HTTPServer.h b/src/HTTPServer/HTTPServer.h
index 2fd4cdcfc..15202a50e 100644
--- a/src/HTTPServer/HTTPServer.h
+++ b/src/HTTPServer/HTTPServer.h
@@ -21,7 +21,7 @@
// fwd:
class cHTTPMessage;
-class cHTTPRequest;
+class cHTTPRequestParser;
class cHTTPResponse;
class cHTTPServerConnection;
@@ -40,14 +40,14 @@ public:
/** Called when a new request arrives over a connection and all its headers have been parsed.
The request body needn't have arrived yet. */
- virtual void OnRequestBegun(cHTTPServerConnection & a_Connection, cHTTPRequest & a_Request) = 0;
+ virtual void OnRequestBegun(cHTTPServerConnection & a_Connection, cHTTPRequestParser & a_Request) = 0;
/** Called when another part of request body has arrived.
May be called multiple times for a single request. */
- virtual void OnRequestBody(cHTTPServerConnection & a_Connection, cHTTPRequest & a_Request, const char * a_Data, size_t a_Size) = 0;
+ virtual void OnRequestBody(cHTTPServerConnection & a_Connection, cHTTPRequestParser & a_Request, const char * a_Data, size_t a_Size) = 0;
/** Called when the request body has been fully received in previous calls to OnRequestBody() */
- virtual void OnRequestFinished(cHTTPServerConnection & a_Connection, cHTTPRequest & a_Request) = 0;
+ virtual void OnRequestFinished(cHTTPServerConnection & a_Connection, cHTTPRequestParser & a_Request) = 0;
} ;
cHTTPServer(void);
@@ -85,14 +85,14 @@ protected:
cTCPLink::cCallbacksPtr OnIncomingConnection(const AString & a_RemoteIPAddress, UInt16 a_RemotePort);
/** Called by cHTTPServerConnection when it finishes parsing the request header */
- void NewRequest(cHTTPServerConnection & a_Connection, cHTTPRequest & a_Request);
+ void NewRequest(cHTTPServerConnection & a_Connection, cHTTPRequestParser & a_Request);
/** Called by cHTTPConenction when it receives more data for the request body.
May be called multiple times for a single request. */
- void RequestBody(cHTTPServerConnection & a_Connection, cHTTPRequest & a_Request, const char * a_Data, size_t a_Size);
+ void RequestBody(cHTTPServerConnection & a_Connection, cHTTPRequestParser & a_Request, const char * a_Data, size_t a_Size);
/** Called by cHTTPServerConnection when it detects that the request has finished (all of its body has been received) */
- void RequestFinished(cHTTPServerConnection & a_Connection, cHTTPRequest & a_Request);
+ void RequestFinished(cHTTPServerConnection & a_Connection, cHTTPRequestParser & a_Request);
} ;