File Reference
#include "squid.h"
#include "base/Packable.h"
#include "debug/Stream.h"
#include "enums.h"
#include "HttpHdrContRange.h"
#include "HttpHeaderTools.h"
Include dependency graph for

Go to the source code of this file.


#define range_spec_unknown   (-1)
#define known_spec(s)   ((s) != range_spec_unknown)
#define size_min(a, b)   ((a) <= (b) ? (a) : (b))
#define size_diff(a, b)   ((a) >= (b) ? ((a)-(b)) : 0)


static int httpHdrRangeRespSpecParseInit (HttpHdrRangeSpec *spec, const char *field, int flen)
static void httpHdrRangeRespSpecPackInto (const HttpHdrRangeSpec *spec, Packable *p)
HttpHdrContRangehttpHdrContRangeCreate (void)
HttpHdrContRangehttpHdrContRangeParseCreate (const char *str)
int httpHdrContRangeParseInit (HttpHdrContRange *range, const char *str)
HttpHdrContRangehttpHdrContRangeDup (const HttpHdrContRange *range)
void httpHdrContRangePackInto (const HttpHdrContRange *range, Packable *p)
void httpHdrContRangeSet (HttpHdrContRange *cr, HttpHdrRangeSpec spec, int64_t ent_len)

Macro Definition Documentation

◆ known_spec

#define known_spec (   s)    ((s) != range_spec_unknown)

Definition at line 34 of file

◆ range_spec_unknown

#define range_spec_unknown   (-1)

Definition at line 31 of file

◆ size_diff

#define size_diff (   a,
)    ((a) >= (b) ? ((a)-(b)) : 0)

Definition at line 36 of file

◆ size_min

#define size_min (   a,
)    ((a) <= (b) ? (a) : (b))

Definition at line 35 of file

Function Documentation

◆ httpHdrContRangeCreate()

◆ httpHdrContRangeDup()

HttpHdrContRange * httpHdrContRangeDup ( const HttpHdrContRange range)

Definition at line 196 of file

References assert, and httpHdrContRangeCreate().

◆ httpHdrContRangePackInto()

void httpHdrContRangePackInto ( const HttpHdrContRange range,
Packable p 

◆ httpHdrContRangeParseCreate()

HttpHdrContRange * httpHdrContRangeParseCreate ( const char *  str)

Definition at line 127 of file

References httpHdrContRangeCreate(), and httpHdrContRangeParseInit().

Referenced by HttpHeader::getContRange().

◆ httpHdrContRangeParseInit()

int httpHdrContRangeParseInit ( HttpHdrContRange crange,
const char *  crange_spec 

◆ httpHdrContRangeSet()

void httpHdrContRangeSet ( HttpHdrContRange cr,
HttpHdrRangeSpec  spec,
int64_t  ent_len 

inits with given spec

Definition at line 220 of file

References assert, HttpHdrContRange::elength, and HttpHdrContRange::spec.

Referenced by httpHeaderAddContRange().

◆ httpHdrRangeRespSpecPackInto()

static void httpHdrRangeRespSpecPackInto ( const HttpHdrRangeSpec spec,
Packable p 

◆ httpHdrRangeRespSpecParseInit()

static int httpHdrRangeRespSpecParseInit ( HttpHdrRangeSpec spec,
const char *  field,
int  flen 






Web Site Translations