#include <HttpHeaderRange.h>
Public Types | |
typedef Range< int64_t, uint64_t > | HttpRange |
Public Member Functions | |
HttpHdrRangeSpec () | |
bool | parseInit (const char *field, int flen) |
int | canonize (int64_t clen) |
void | outputInfo (char const *note) const |
void | packInto (Packable *p) const |
bool | mergeWith (const HttpHdrRangeSpec *donor) |
Static Public Member Functions | |
static HttpHdrRangeSpec * | Create (const char *field, int fieldLen) |
Public Attributes | |
int64_t | offset |
int64_t | length |
Static Public Attributes | |
static int64_t const | UnknownPosition = -1 |
Private Member Functions | |
MEMPROXY_CLASS (HttpHdrRangeSpec) | |
Detailed Description
either byte-range-spec (in a request Range header) or suffix-byte-range-spec (in a request Range header) or byte-range part of byte-range-resp (in a response Content-Range header) or "*" part of unsatisfied-range (in a response Content-Range header)
Definition at line 26 of file HttpHeaderRange.h.
Member Typedef Documentation
◆ HttpRange
typedef Range<int64_t, uint64_t> HttpHdrRangeSpec::HttpRange |
Definition at line 31 of file HttpHeaderRange.h.
Constructor & Destructor Documentation
◆ HttpHdrRangeSpec()
HttpHdrRangeSpec::HttpHdrRangeSpec | ( | ) |
Definition at line 49 of file HttpHdrRange.cc.
Referenced by Create().
Member Function Documentation
◆ canonize()
int HttpHdrRangeSpec::canonize | ( | int64_t | clen | ) |
Definition at line 132 of file HttpHdrRange.cc.
References assert, Range< C, S >::intersection(), known_spec, length, offset, outputInfo(), and Range< C, S >::size().
◆ Create()
|
static |
Definition at line 53 of file HttpHdrRange.cc.
References HttpHdrRangeSpec(), and parseInit().
Referenced by HttpHdrRange::parseInit().
◆ MEMPROXY_CLASS()
|
private |
◆ mergeWith()
bool HttpHdrRangeSpec::mergeWith | ( | const HttpHdrRangeSpec * | donor | ) |
Definition at line 162 of file HttpHdrRange.cc.
References assert, known_spec, length, and offset.
◆ outputInfo()
void HttpHdrRangeSpec::outputInfo | ( | char const * | note | ) | const |
Definition at line 120 of file HttpHdrRange.cc.
References debugs, length, and offset.
Referenced by canonize().
◆ packInto()
void HttpHdrRangeSpec::packInto | ( | Packable * | p | ) | const |
Definition at line 109 of file HttpHdrRange.cc.
References Packable::appendf(), known_spec, length, offset, and PRId64.
◆ parseInit()
bool HttpHdrRangeSpec::parseInit | ( | const char * | field, |
int | flen | ||
) |
Definition at line 64 of file HttpHdrRange.cc.
References debugs, httpHeaderParseOffset(), known_spec, length, offset, and Range< C, S >::size().
Referenced by Create().
Member Data Documentation
◆ length
int64_t HttpHdrRangeSpec::length |
Definition at line 43 of file HttpHeaderRange.h.
Referenced by Ftp::Gateway::appendSuccessHeader(), canonize(), httpHdrContRangeCreate(), httpHdrContRangeParseInit(), httpHdrRangeRespSpecPackInto(), httpHdrRangeRespSpecParseInit(), mergeWith(), outputInfo(), packInto(), Http::Stream::packRange(), and parseInit().
◆ offset
int64_t HttpHdrRangeSpec::offset |
Definition at line 42 of file HttpHeaderRange.h.
Referenced by Ftp::Gateway::appendSuccessHeader(), canonize(), httpHdrContRangeCreate(), httpHdrContRangeParseInit(), httpHdrRangeRespSpecPackInto(), httpHdrRangeRespSpecParseInit(), mergeWith(), outputInfo(), packInto(), Http::Stream::packRange(), and parseInit().
◆ UnknownPosition
|
static |
Definition at line 32 of file HttpHeaderRange.h.
Referenced by HttpHdrRange::firstOffset(), Http::Stream::getNextRangeOffset(), Client::haveParsedReplyHeaders(), HttpHdrRange::lowestOffset(), and Http::Stream::socketState().
The documentation for this class was generated from the following files:
- src/HttpHeaderRange.h
- src/HttpHdrRange.cc