summaryrefslogtreecommitdiff
path: root/src/modules/httpd.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 14:00:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-11 14:00:54 +0000
commit1ce6fe7525c8213682d6cfca2acd9420d4e72f36 (patch)
tree7dd9c7797cd63a3d2485f36c5acc6a7bf11ba8ed /src/modules/httpd.h
parent10630982d7f44990589a9363bc65d31dfd991e8e (diff)
Error code stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4329 e03df62e-2008-0410-955e-edbf42e46eb7
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());