#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

Definition at line 23 of file HttpHeaderRange.h.

Member Typedef Documentation

typedef Range<int64_t, uint64_t> HttpHdrRangeSpec::HttpRange

Definition at line 28 of file HttpHeaderRange.h.

Constructor & Destructor Documentation

HttpHdrRangeSpec::HttpHdrRangeSpec ( )

Definition at line 49 of file HttpHdrRange.cc.

Referenced by Create().

Member Function Documentation

int HttpHdrRangeSpec::canonize ( int64_t  clen)
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().

HttpHdrRangeSpec::MEMPROXY_CLASS ( HttpHdrRangeSpec  )
bool HttpHdrRangeSpec::mergeWith ( const HttpHdrRangeSpec donor)

Definition at line 162 of file HttpHdrRange.cc.

References assert, known_spec, length, and offset.

void HttpHdrRangeSpec::outputInfo ( char const *  note) const

Definition at line 120 of file HttpHdrRange.cc.

References debugs, length, and offset.

Referenced by canonize().

void HttpHdrRangeSpec::packInto ( Packable p) const

Definition at line 109 of file HttpHdrRange.cc.

References Packable::appendf(), known_spec, length, offset, and PRId64.

bool HttpHdrRangeSpec::parseInit ( const char *  field,
int  flen 

Definition at line 64 of file HttpHdrRange.cc.

References debugs, httpHeaderParseOffset(), known_spec, length, offset, p, and Range< C, S >::size().

Referenced by Create().

Member Data Documentation

int64_t const HttpHdrRangeSpec::UnknownPosition = -1

Definition at line 29 of file HttpHeaderRange.h.

Referenced by HttpHdrRange::firstOffset(), and HttpHdrRange::lowestOffset().

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






Web Site Translations