diff options
author | madmaxoft <github@xoft.cz> | 2013-09-27 21:28:41 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-27 21:28:41 +0200 |
commit | 5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67 (patch) | |
tree | 9c1f8b1f21555751b6a5886cf32a492a1e504c85 /source/HTTPServer/HTTPConnection.h | |
parent | Fixed leaking HTTPRequest objects (diff) | |
download | cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.tar cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.tar.gz cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.tar.bz2 cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.tar.lz cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.tar.xz cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.tar.zst cuberite-5cf8fc12ae000cd2d2b54a2bf158f82bdb8a0e67.zip |
Diffstat (limited to '')
-rw-r--r-- | source/HTTPServer/HTTPConnection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/HTTPServer/HTTPConnection.h b/source/HTTPServer/HTTPConnection.h index d8ecdf1d9..46c36a8a2 100644 --- a/source/HTTPServer/HTTPConnection.h +++ b/source/HTTPServer/HTTPConnection.h @@ -52,9 +52,12 @@ public: /// Sends the data as the response (may be called multiple times) void Send(const AString & a_Data) { Send(a_Data.data(), a_Data.size()); } - /// Finishes sending current response, gets ready for receiving another request (HTTP 1.1 keepalive) + /// Indicates that the current response is finished, gets ready for receiving another request (HTTP 1.1 keepalive) void FinishResponse(void); + /// Resets the connection for a new request. Depending on the state, this will send an "InternalServerError" status or a "ResponseEnd" + void AwaitNextRequest(void); + protected: typedef std::map<AString, AString> cNameValueMap; |