}
};
+class HTTPDocument : public classbase
+{
+ protected:
+ std::stringstream* document;
+ int responsecode;
+ std::string extraheaders;
+
+ public:
+
+ void* sock;
+
+ HTTPDocument(void* opaque, std::stringstream* doc, int response, const std::string &extra) : document(doc), responsecode(response), extraheaders(extra), sock(opaque)
+ {
+ }
+
+ std::stringstream* GetDocument()
+ {
+ return this->document;
+ }
+
+ unsigned long GetDocumentSize()
+ {
+ return this->document->str().length();
+ }
+
+ int GetResponseCode()
+ {
+ return this->responsecode;
+ }
+
+ std::string& GetExtraHeaders()
+ {
+ return this->extraheaders;
+ }
+};
+
#endif
//httpr(request_type,uri,headers,this,this->GetIP());