#include <HttpHeaderRange.h>

Collaboration diagram for HttpHdrRangeSpec:

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 HttpHdrRangeSpecCreate (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)

◆ Create()

HttpHdrRangeSpec * HttpHdrRangeSpec::Create ( const char *  field,
int  fieldLen 

Definition at line 53 of file HttpHdrRange.cc.

References HttpHdrRangeSpec(), and parseInit().

Referenced by HttpHdrRange::parseInit().


HttpHdrRangeSpec::MEMPROXY_CLASS ( HttpHdrRangeSpec  )

◆ 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

◆ offset

◆ UnknownPosition

int64_t const HttpHdrRangeSpec::UnknownPosition = -1

The documentation for this class was generated from the following files:






Web Site Translations