diff options
author | madmaxoft <github@xoft.cz> | 2013-10-04 20:28:30 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-04 20:28:30 +0200 |
commit | db3d83b38dd61b90466a0721fa9104e742f3fb8b (patch) | |
tree | ba45a5a87eb7a688cbbe05587abaf1bea667371f /source/HTTPServer/HTTPConnection.h | |
parent | HTTP Server can now parse multipart/form-data forms; better architecture. (diff) | |
download | cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.tar cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.tar.gz cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.tar.bz2 cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.tar.lz cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.tar.xz cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.tar.zst cuberite-db3d83b38dd61b90466a0721fa9104e742f3fb8b.zip |
Diffstat (limited to '')
-rw-r--r-- | source/HTTPServer/HTTPConnection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/HTTPServer/HTTPConnection.h b/source/HTTPServer/HTTPConnection.h index 9e05d342b..941a29000 100644 --- a/source/HTTPServer/HTTPConnection.h +++ b/source/HTTPServer/HTTPConnection.h @@ -43,6 +43,9 @@ public: /// Sends HTTP status code together with a_Reason (used for HTTP errors) void SendStatusAndReason(int a_StatusCode, const AString & a_Reason); + /// Sends the "401 unauthorized" reply together with instructions on authorizing, using the specified realm + void SendNeedAuth(const AString & a_Realm); + /// Sends the headers contained in a_Response void Send(const cHTTPResponse & a_Response); |