summaryrefslogtreecommitdiff
path: root/src/HttpHeaderProcessor.cc
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.cc
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.cc')
-rw-r--r--src/HttpHeaderProcessor.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/HttpHeaderProcessor.cc b/src/HttpHeaderProcessor.cc
index 23e97411..51b83fad 100644
--- a/src/HttpHeaderProcessor.cc
+++ b/src/HttpHeaderProcessor.cc
@@ -34,23 +34,24 @@
/* copyright --> */
#include "HttpHeaderProcessor.h"
#include "message.h"
-#include "DlRetryEx.h"
-#include "DlAbortEx.h"
#include "Util.h"
void HttpHeaderProcessor::update(const char* data, int32_t length)
+ throw(DlAbortEx*)
{
checkHeaderLimit(length);
strm.write(data, length);
}
void HttpHeaderProcessor::update(const string& data)
+ throw(DlAbortEx*)
{
checkHeaderLimit(data.size());
strm << data;
}
void HttpHeaderProcessor::checkHeaderLimit(int32_t incomingLength)
+ throw(DlAbortEx*)
{
strm.seekg(0, ios::end);
if((int32_t)strm.tellg()+incomingLength > _limit) {
@@ -87,6 +88,7 @@ void HttpHeaderProcessor::clear()
}
pair<string, HttpHeaderHandle> HttpHeaderProcessor::getHttpStatusHeader()
+ throw(DlRetryEx*)
{
strm.seekg(0, ios::beg);
string line;