9 class HTTPRequest : public classbase
16 std::stringstream* headers;
22 HTTPRequest(const std::string &request_type, const std::string &uri, std::stringstream* hdr, void* opaque, const std::string &ip)
23 : type(request_type), document(uri), ipaddr(ip), headers(hdr), sock(opaque)
27 std::stringstream* GetHeaders()
32 std::string& GetType()
48 class HTTPDocument : public classbase
51 std::stringstream* document;
53 std::string extraheaders;
59 HTTPDocument(void* opaque, std::stringstream* doc, int response, const std::string &extra) : document(doc), responsecode(response), extraheaders(extra), sock(opaque)
63 std::stringstream* GetDocument()
65 return this->document;
68 unsigned long GetDocumentSize()
70 return this->document->str().length();
75 return this->responsecode;
78 std::string& GetExtraHeaders()
80 return this->extraheaders;
86 //httpr(request_type,uri,headers,this,this->GetIP());