summaryrefslogtreecommitdiff
path: root/src/HttpResponse.cc
Commit message (Collapse)AuthorAgeFilesLines
* Enable IndentPPDirectivesTatsuhiro Tsujikawa2018-06-091-1/+1
|
* Log directed URI in notice log levelTatsuhiro Tsujikawa2017-04-091-2/+2
|
* new option content-disposition-default-utf8JimmyZ2016-12-311-2/+3
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-58/+47
|
* Rewrite Time with chronoTatsuhiro Tsujikawa2015-06-091-1/+1
|
* Revert to existing "proper" coding styleTatsuhiro Tsujikawa2014-06-031-10/+10
| | | | | The rule is simple: don't try to change the coding style of the existing codebase.
* Use index.html as filename for conditional-get when file is missing in URITatsuhiro Tsujikawa2014-05-081-1/+1
| | | | | | | | Previously we disabled conditional-get if file part is missing in URI. But we use constant string "index.html" in this case, so we can do the same to determine the modification time. In this patch, if we have file part in URI, we are not going to set absolute file path in FileEntry, since it prevents content-disposition from working.
* Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, alwaysNils Maier2014-04-171-4/+0
|
* Treat 30X response without Location header field as errorTatsuhiro Tsujikawa2014-02-051-0/+4
| | | | This is required to make segmented download work.
* Better handling of 30X HTTP status codesTatsuhiro Tsujikawa2014-02-051-27/+31
| | | | Reference: http://greenbytes.de/tech/tc/httpredirects/
* Fix typoTatsuhiro Tsujikawa2013-11-061-1/+1
|
* Code cleanup in Http*Nils Maier2013-09-201-115/+130
|
* Convert to autos and ranged loopsNils Maier2013-08-211-19/+13
|
* Return nullptr directly where std::unique_ptr is expectedTatsuhiro Tsujikawa2013-07-041-2/+2
| | | | | The constructor of std::unique_ptr which takes nullptr is not explicit so we can return nullptr directly.
* Use std::unique_ptr for StreamFilter instead of std::shared_ptrTatsuhiro Tsujikawa2013-07-041-8/+8
|
* Use std::unique_ptr for HttpRequest instead of std::shared_ptrTatsuhiro Tsujikawa2013-07-041-5/+3
|
* Refactor HttpConnection and its neighbor objectsTatsuhiro Tsujikawa2013-06-261-2/+7
|
* Require -std=c++11 and use std::shared_ptr instead of SharedHandleTatsuhiro Tsujikawa2013-06-221-7/+7
|
* Dont' return SharedHandle from HttpHeader::getRange()Tatsuhiro Tsujikawa2012-09-301-6/+6
|
* Removed *Handle typedefTatsuhiro Tsujikawa2012-09-281-1/+1
|
* Removed HttpHeader::findAs{LL}Int and unused HttpResponse::{has,get}RetryAfterTatsuhiro Tsujikawa2012-09-261-10/+0
|
* Removed static std::string constant in HttpHeaderTatsuhiro Tsujikawa2012-09-231-22/+4
| | | | | This change also removes inspection of Proxy-Connection header field when checking whether the remote endpoint keeps connection open.
* Store only interesting HTTP headers in HttpHeaderTatsuhiro Tsujikawa2012-09-231-7/+6
| | | | | | In this change, we defined HTTP header fields we are interested in. We only store those headers in HttpHeader object. Accessing HTTP headers in HttpHeader object is now done through enum values.
* Removed static_cast<int64>()s where they are unnecessaryTatsuhiro Tsujikawa2012-06-251-6/+6
|
* Use int64_t instead of off_tTatsuhiro Tsujikawa2012-06-251-2/+2
| | | | | Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator and ChecksumValidator are left unchanged.
* Use PRId64 for int64_t format specifierTatsuhiro Tsujikawa2012-06-251-7/+7
|
* Replaced uint64_t with off_t or int64_t.Tatsuhiro Tsujikawa2011-12-091-3/+3
| | | | | Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t.
* Use fmt instead of util::itosTatsuhiro Tsujikawa2011-11-131-6/+6
|
* Rewritten parse*IntTatsuhiro Tsujikawa2011-11-121-1/+1
|
* HttpHeader::fill() now stores header name in lowercase.Tatsuhiro Tsujikawa2011-11-111-18/+27
| | | | | Find methods in HttpHeader won't lowercase argument, so use lowercase letters to get HTTP header field.
* Rewritten base64::decode and base64::encodeTatsuhiro Tsujikawa2011-11-051-1/+1
|
* mv Base64.{cc,h} base64.{cc,h}Tatsuhiro Tsujikawa2011-11-051-1/+1
|
* Rewritten util::split and added its iterator version.Tatsuhiro Tsujikawa2011-11-041-2/+6
| | | | | Iterator based functions util::startsWith, util::endsWith, util::streq, util::strieq were added.
* util::divide now takes iterators as arguments.Tatsuhiro Tsujikawa2011-11-031-3/+4
|
* util::percentDecode now takes iterators as arguments.Tatsuhiro Tsujikawa2011-11-031-1/+3
|
* Changed parse*Int functions so that it accepts iterators.Tatsuhiro Tsujikawa2011-11-031-1/+1
|
* Rewritten util::stripIter(), which now returns pair of iterator.Tatsuhiro Tsujikawa2011-11-031-3/+4
|
* Stored hash value as raw byte string, instead of hex digest.Tatsuhiro Tsujikawa2011-10-131-3/+4
|
* Removed redundant MessageDigest::supports() call.Tatsuhiro Tsujikawa2011-08-231-3/+0
| | | | | MessageDigest::supports() will be called from MessageDigest::isValidHash() later in the function.
* Percent-encode non-printable ASCII and non-ASCII chars in FileEntry.Tatsuhiro Tsujikawa2011-08-071-1/+2
| | | | | | | Percent-encode non-printable ASCII and non-ASCII chars in URI using util::percentEncodeMini() when URI is added to FileEntry. Removed percent-encode from Request. Also do percent-encoding when setting referer and redirected URI.
* Made getRedirectURI and getTransferEncoding return const reference.Tatsuhiro Tsujikawa2011-08-071-2/+2
| | | | | Made getRedirectURI and getTransferEncoding in HttpResponse return const reference.
* Consistent naming scheme for hash type and digest.Tatsuhiro Tsujikawa2011-07-271-2/+2
|
* Use HttpHeader::getIterator() instead of HttpHeader::get()Tatsuhiro Tsujikawa2011-07-271-4/+6
|
* HttpResponse::getDigest() now returns all Digest.Tatsuhiro Tsujikawa2011-07-271-13/+26
| | | | | In addition, HttpResponse::getMetalinkHttpEntries() does not check validity of URI. It is checked when we add it to FileEntry.
* Added Metalink/HTTP Link and Digest header field parser.Tatsuhiro Tsujikawa2011-07-261-0/+139
|
* Replaced HAVE_LIBZ with HAVE_ZLIBTatsuhiro Tsujikawa2011-02-181-4/+4
|
* Accept HTTP 304 reply as success when If-None-Match request-headerTatsuhiro Tsujikawa2011-01-291-2/+2
| | | | | | | field is specified using --header option. When --conditional-get is used, --allow-overwrite is now required to overwrite existing file.
* Added more error code values.Tatsuhiro Tsujikawa2010-12-011-3/+7
| | | | | I have not set error code for all exception invocation. In this change, I set error code where error likely occurs.
* Renamed DownloadErrorCode.h as error_code.h. RenamedTatsuhiro Tsujikawa2010-11-281-1/+1
| | | | downloaderrorcode::Value as error_code::Value.
* 2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>Tatsuhiro Tsujikawa2010-11-201-4/+4
| | | | | | | | Use format specifier %lld for cuid_t. Defined cuid_t as long long int instead of int64_t, since g++ complains int64_t is not suitable for %lld.