diff options
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r-- | net/http/http_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h index c630cfe..4d4b200 100644 --- a/net/http/http_util.h +++ b/net/http/http_util.h @@ -54,6 +54,11 @@ class HttpUtil { static bool ParseRanges(const std::string& headers, std::vector<HttpByteRange>* ranges); + // Same thing as ParseRanges except the Range header is known and its value + // is directly passed in, rather than requiring searching through a string. + static bool ParseRangeHeader(const std::string& range_specifier, + std::vector<HttpByteRange>* ranges); + // Scans the '\r\n'-delimited headers for the given header name. Returns // true if a match is found. Input is assumed to be well-formed. // TODO(darin): kill this |