diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 20:52:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 20:52:21 +0000 |
commit | 9b3f2821960aa5203d84cf7994090d069b0d1e51 (patch) | |
tree | 9ee60b515a2d47c517254416f2ae8f590eb54aee /src/modules/httpclient.h | |
parent | 8f0f9654f841f8034be4c071660a378a91434782 (diff) |
Fixed all that, back to the crash we had before (yay?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8583 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/httpclient.h')
-rw-r--r-- | src/modules/httpclient.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/modules/httpclient.h b/src/modules/httpclient.h index c5e84261f..a89de4785 100644 --- a/src/modules/httpclient.h +++ b/src/modules/httpclient.h @@ -23,6 +23,7 @@ typedef std::map<std::string,std::string> HeaderMap; const char* HTTP_CLIENT_RESPONSE = "HTTPCLIENT_RESPONSE"; const char* HTTP_CLIENT_REQUEST = "HTTPCLIENT_REQUEST"; +const char* HTTP_CLIENT_ERROR = "HTTPCLIENT_ERROR"; /** This class represents an outgoing HTTP request */ @@ -67,6 +68,26 @@ class HTTPClientRequest : public Request } }; +class HTTPClientError : public Request +{ + protected: + friend class HTTPSocket; + std::string url; + int response; + std::string responsestr; + HeaderMap Headers; + public: + HTTPClientError(Module* src, Module* target, const std::string &url, int response) + : Request(src, target, HTTP_CLIENT_ERROR), url(url), response(response) + { + } + + const std::string &GetURL() + { + return url; + } +}; + class HTTPClientResponse : public Request { protected: |