summaryrefslogtreecommitdiff
path: root/src/modules/httpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/httpd.h')
-rw-r--r--src/modules/httpd.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/modules/httpd.h b/src/modules/httpd.h
index 8819202eb..3f8ee215c 100644
--- a/src/modules/httpd.h
+++ b/src/modules/httpd.h
@@ -45,6 +45,33 @@ class HTTPRequest : public classbase
}
};
+class HTTPDocument : public classbase
+{
+ protected:
+ std::stringstream* document;
+ int responsecode;
+
+ public:
+ HTTPDocument(std::stringstream* doc, int response) : document(doc), responsecode(response)
+ {
+ }
+
+ std::stringstream* GetDocument()
+ {
+ return this->document;
+ }
+
+ std::stringstream* GetDocumentSize()
+ {
+ return this->document.size();
+ }
+
+ int GetResponseCode()
+ {
+ return this->responsecode;
+ }
+};
+
#endif
//httpr(request_type,uri,headers,this,this->GetIP());