summaryrefslogtreecommitdiff
path: root/src/HttpHeaderProcessor.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-10-11 16:58:24 +0000
commit048a2cf59737f761876e81a77e8d064c45c752d7 (patch)
tree65c9d5498aafe6a8c8e640ddfcc43c7013504d0d /src/HttpHeaderProcessor.h
parente26bbbb9eee140ba24402fe872a752b42f0077de (diff)
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented BitTorrent/http/ftp integrated download. I've rewritten lots of files and now some headers have forward class declarations to reduce compile time. The implementation is extremely alpha stage, I recommend to use this for testing purpose only.
Diffstat (limited to 'src/HttpHeaderProcessor.h')
-rw-r--r--src/HttpHeaderProcessor.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/HttpHeaderProcessor.h b/src/HttpHeaderProcessor.h
index 51491602..59ffa4d8 100644
--- a/src/HttpHeaderProcessor.h
+++ b/src/HttpHeaderProcessor.h
@@ -37,6 +37,8 @@
#include "common.h"
#include "HttpHeader.h"
+#include "DlRetryEx.h"
+#include "DlAbortEx.h"
#include <utility>
#include <sstream>
@@ -45,16 +47,16 @@ private:
stringstream strm;
int32_t _limit;
- void checkHeaderLimit(int32_t incomingLength);
+ void checkHeaderLimit(int32_t incomingLength) throw(DlAbortEx*);
public:
HttpHeaderProcessor():_limit(4096) {}
~HttpHeaderProcessor() {}
- void update(const char* data, int32_t length);
+ void update(const char* data, int32_t length) throw(DlAbortEx*);
- void update(const string& data);
+ void update(const string& data) throw(DlAbortEx*);
/**
* Returns true if end of header is reached.
@@ -66,7 +68,7 @@ public:
*/
int32_t getPutBackDataLength() const;
- pair<string, HttpHeaderHandle> getHttpStatusHeader();
+ pair<string, HttpHeaderHandle> getHttpStatusHeader() throw(DlRetryEx*);
string getHeaderString() const;