/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#define SQUID_HTTPHEADERRANGE_H
#include "mem/forward.h"
-#include "Packer.h"
#include "Range.h"
#include "SquidString.h"
#include <vector>
class HttpReply;
+class Packable;
+
/* http byte-range-spec */
class HttpHdrRangeSpec
bool parseInit(const char *field, int flen);
int canonize(int64_t clen);
void outputInfo( char const *note) const;
- void packInto(Packer * p) const;
+ void packInto(Packable * p) const;
bool mergeWith(const HttpHdrRangeSpec * donor);
int64_t offset;
int64_t length;
int canonize(HttpReply *rep);
/* returns true if ranges are valid; inits HttpHdrRange */
bool parseInit(const String * range_spec);
- void packInto(Packer * p) const;
+ void packInto(Packable * p) const;
/* other */
bool isComplex() const;
bool willBeComplex() const;
void updateSpec();
int64_t debt() const;
void debt(int64_t);
- int64_t debt_size; /* bytes left to send from the current spec */
- String boundary; /* boundary for multipart responses */
+ int64_t debt_size; /* bytes left to send from the current spec */
+ String boundary; /* boundary for multipart responses */
bool valid;
};
#endif /* SQUID_HTTPHEADERRANGE_H */
+