diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-11 14:38:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-11 14:38:07 +0000 |
commit | 6322067c9073a83ee7e9b12bc0c868a5507f1d87 (patch) | |
tree | a81f280034c7a924101f08bc958c2c04c99ff67a /src/modules/httpd.h | |
parent | 5a673b22fc50ccc9a47616c8ba8a7fab8faf1d51 (diff) |
Stuff for adding extra headers to a response (for Authorization: and Location: etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4333 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/httpd.h')
-rw-r--r-- | src/modules/httpd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/httpd.h b/src/modules/httpd.h index 5ac4d0c85..ba059dca8 100644 --- a/src/modules/httpd.h +++ b/src/modules/httpd.h @@ -50,12 +50,13 @@ class HTTPDocument : public classbase protected: std::stringstream* document; int responsecode; + std::string extraheaders; public: void* sock; - HTTPDocument(void* opaque, std::stringstream* doc, int response) : document(doc), responsecode(response), sock(opaque) + HTTPDocument(void* opaque, std::stringstream* doc, int response, const std::string &extra) : document(doc), responsecode(response), extraheaders(extra), sock(opaque) { } @@ -73,6 +74,11 @@ class HTTPDocument : public classbase { return this->responsecode; } + + std::string& GetExtraHeaders() + { + return this->extraheaders; + } }; #endif |