HttpHdrContRange.cc
Go to the documentation of this file.
67 debugs(68, 2, "invalid (no first-byte-pos or it is negative) resp-range-spec near: '" << field << "'");
176 } else if (known_spec(range->spec.length) && range->elength < (range->spec.offset + range->spec.length)) {
177 debugs(68, 2, "invalid (range is outside entity-length) content-range-spec near: '" << str << "'");
HttpHdrContRange * httpHdrContRangeCreate(void)
Definition: HttpHdrContRange.cc:118
static void httpHdrRangeRespSpecPackInto(const HttpHdrRangeSpec *spec, Packable *p)
Definition: HttpHdrContRange.cc:102
static int httpHdrRangeRespSpecParseInit(HttpHdrRangeSpec *spec, const char *field, int flen)
Definition: HttpHdrContRange.cc:42
HttpHdrContRange * httpHdrContRangeDup(const HttpHdrContRange *range)
Definition: HttpHdrContRange.cc:196
void httpHdrContRangePackInto(const HttpHdrContRange *range, Packable *p)
Definition: HttpHdrContRange.cc:206
void httpHdrContRangeSet(HttpHdrContRange *cr, HttpHdrRangeSpec spec, int64_t ent_len)
Definition: HttpHdrContRange.cc:220
int httpHdrContRangeParseInit(HttpHdrContRange *range, const char *str)
Definition: HttpHdrContRange.cc:141
HttpHdrContRange * httpHdrContRangeParseCreate(const char *str)
Definition: HttpHdrContRange.cc:127
bool httpHeaderParseOffset(const char *start, int64_t *value, char **endPtr)
Definition: HttpHeaderTools.cc:137
Definition: HttpHdrContRange.h:18
Definition: HttpHeaderRange.h:27
Definition: Packable.h:53
void appendf(const char *fmt,...) PRINTF_FORMAT_ARG2
Append operation with printf-style arguments.
Definition: Packable.h:61
virtual void append(const char *buf, int size)=0
Appends a c-string to existing packed data.