9#ifndef SQUID_SRC_HTTPREPLY_H
10#define SQUID_SRC_HTTPREPLY_H
34 void reset()
override;
77 const char *reason,
const char *ctype, int64_t clen, time_t lmt, time_t
expires);
void httpReplyInitModule(void)
void error(char *format,...)
bool parseFirstLine(const char *start, const char *end) override
size_t parseTerminatedPrefix(const char *, size_t)
time_t hdrExpirationTime()
HttpHdrContRange * content_range
parsed Content-Range; nil for non-206 responses!
const HttpHdrContRange * contentRange() const
int httpMsgParseError() override
void configureContentLengthInterpreter(Http::ContentLengthInterpreter &) override
configures the interpreter as needed
HttpReplyPointer make304() const
bool olderThan(const HttpReply *them) const
bool expectingBody(const HttpRequestMethod &, int64_t &) const override
bool parseHeader(Http1::Parser &hp)
parses reply header using Parser
HttpHdrSc * surrogate_control
void packFirstLineInto(Packable *p, bool) const override
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
MEMPROXY_CLASS(HttpReply)
RefCount< HttpReply > Pointer
bool inheritProperties(const Http::Message *) override
void calcMaxBodySize(HttpRequest &request) const
int64_t bodySize(const HttpRequestMethod &) const
MemBuf * packed304Reply() const
void removeIrrelevantContentLength()
Some response status codes prohibit sending Content-Length (RFC 7230 section 3.3.2).
bool receivedBodyTooLarge(HttpRequest &, int64_t receivedBodySize)
void redirect(Http::StatusCode, const char *)
bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) override
int validatorsMatch(HttpReply const *other) const
void hdrCacheInit() override
void packHeadersUsingSlowPacker(Packable &p) const
same as packHeadersUsingFastPacker() but assumes that p cannot quickly process small additions
void packInto(MemBuf &) const
void packHeadersUsingFastPacker(Packable &p) const
Pointer recreateOnNotModified(const HttpReply &reply304) const
bool expectedBodyTooLarge(HttpRequest &request)
HttpReply * clone() const override
static HttpReplyPointer MakeConnectionEstablished()
construct and return an HTTP/200 (Connection Established) response
common parts of HttpRequest and HttpReply
void packInto(Packable *) const
pack fields into a Packable object