diff options
author | Mattes D <github@xoft.cz> | 2015-12-25 19:54:04 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-03-01 16:19:55 +0100 |
commit | b92346e3cc517fe2d9f01720110e51cf3ea22c44 (patch) | |
tree | d4fe00f0114d53bcd9c637964fdff78aaceee66d /src/HTTPServer/HTTPFormParser.h | |
parent | Renamed the HTTP classes to indicate they're for server. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/HTTPServer/HTTPFormParser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HTTPServer/HTTPFormParser.h b/src/HTTPServer/HTTPFormParser.h index f6cbe047f..fde6df696 100644 --- a/src/HTTPServer/HTTPFormParser.h +++ b/src/HTTPServer/HTTPFormParser.h @@ -15,7 +15,7 @@ // fwd: -class cHTTPRequest; +class cHTTPRequestParser; @@ -51,7 +51,7 @@ public: /** Creates a parser that is tied to a request and notifies of various events using a callback mechanism */ - cHTTPFormParser(cHTTPRequest & a_Request, cCallbacks & a_Callbacks); + cHTTPFormParser(cHTTPRequestParser & a_Request, cCallbacks & a_Callbacks); /** Creates a parser with the specified content type that reads data from a string */ cHTTPFormParser(eKind a_Kind, const char * a_Data, size_t a_Size, cCallbacks & a_Callbacks); @@ -64,7 +64,7 @@ public: bool Finish(void); /** Returns true if the headers suggest the request has form data parseable by this class */ - static bool HasFormData(const cHTTPRequest & a_Request); + static bool HasFormData(const cHTTPRequestParser & a_Request); protected: @@ -97,7 +97,7 @@ protected: /** Sets up the object for parsing a fpkMultipart request */ - void BeginMultipart(const cHTTPRequest & a_Request); + void BeginMultipart(const cHTTPRequestParser & a_Request); /** Parses m_IncomingData as form-urlencoded data (fpkURL or fpkFormUrlEncoded kinds) */ void ParseFormUrlEncoded(void); |