#include <HttpHeaderRange.h>

Collaboration diagram for HttpHdrRangeSpec:

Public Types

typedef Range< int64_t, uint64_t > HttpRange

Public Member Functions

void * operator new (size_t byteCount)
void operator delete (void *address)
 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 int UseCount ()
static HttpHdrRangeSpecCreate (const char *field, int fieldLen)

Public Attributes

int64_t offset
int64_t length

Static Public Attributes

static int64_t const UnknownPosition = -1

Static Private Member Functions

static Mem::AllocatorProxyPool ()

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(), NULL, and parseInit().

Referenced by HttpHdrRange::parseInit().

◆ mergeWith()

bool HttpHdrRangeSpec::mergeWith ( const HttpHdrRangeSpec donor)

Definition at line 162 of file HttpHdrRange.cc.

References assert, known_spec, length, and offset.

◆ operator delete()

void HttpHdrRangeSpec::operator delete ( void *  address)

Definition at line 28 of file HttpHeaderRange.h.

◆ operator new()

void* HttpHdrRangeSpec::operator new ( size_t  byteCount)

Definition at line 28 of file HttpHeaderRange.h.

◆ 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().

◆ Pool()

static Mem::AllocatorProxy& HttpHdrRangeSpec::Pool ( )

Definition at line 28 of file HttpHeaderRange.h.

◆ UseCount()

static int HttpHdrRangeSpec::UseCount ( )

Definition at line 28 of file HttpHeaderRange.h.

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