X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fhttpd.h;h=ba059dca8e01ea2a8d2f25c1247a737df6167923;hb=6322067c9073a83ee7e9b12bc0c868a5507f1d87;hp=5ac4d0c85fd4ca1bbf8adcc43135ff69f74dc862;hpb=5a673b22fc50ccc9a47616c8ba8a7fab8faf1d51;p=user%2Fhenk%2Fcode%2Finspircd.git 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