summaryrefslogtreecommitdiffstats
path: root/source/HTTPServer/HTTPConnection.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-06 16:40:28 +0200
committermadmaxoft <github@xoft.cz>2013-10-06 16:40:28 +0200
commitf55b77a98a41ba784109842cde39ba0e1d2bc262 (patch)
tree89c1b144d1a224c24bc7ae79e9b0304766e01a8f /source/HTTPServer/HTTPConnection.h
parentcListenThread: Fixed thread termination. (diff)
downloadcuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar
cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.gz
cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.bz2
cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.lz
cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.xz
cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.zst
cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.zip
Diffstat (limited to 'source/HTTPServer/HTTPConnection.h')
-rw-r--r--source/HTTPServer/HTTPConnection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/HTTPServer/HTTPConnection.h b/source/HTTPServer/HTTPConnection.h
index 941a29000..14603bb70 100644
--- a/source/HTTPServer/HTTPConnection.h
+++ b/source/HTTPServer/HTTPConnection.h
@@ -39,6 +39,7 @@ public:
} ;
cHTTPConnection(cHTTPServer & a_HTTPServer);
+ ~cHTTPConnection();
/// Sends HTTP status code together with a_Reason (used for HTTP errors)
void SendStatusAndReason(int a_StatusCode, const AString & a_Reason);
@@ -61,6 +62,9 @@ public:
/// Resets the connection for a new request. Depending on the state, this will send an "InternalServerError" status or a "ResponseEnd"
void AwaitNextRequest(void);
+ /// Terminates the connection; finishes any request being currently processed
+ void Terminate(void);
+
protected:
typedef std::map<AString, AString> cNameValueMap;