HttpReply.h
Go to the documentation of this file.
37 bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) override;
void httpReplyInitModule(void)
void error(char *format,...)
Definition: HttpBody.h:22
Definition: HttpHdrContRange.h:18
Definition: HttpHdrSc.h:25
Definition: HttpReply.h:25
bool parseFirstLine(const char *start, const char *end) override
Definition: HttpReply.cc:454
HttpHdrContRange * content_range
parsed Content-Range; nil for non-206 responses!
Definition: HttpReply.h:152
void configureContentLengthInterpreter(Http::ContentLengthInterpreter &) override
configures the interpreter as needed
Definition: HttpReply.cc:460
bool expectingBody(const HttpRequestMethod &, int64_t &) const override
Definition: HttpReply.cc:487
void packFirstLineInto(Packable *p, bool) const override
Definition: HttpReply.h:155
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
Definition: HttpReply.cc:167
MEMPROXY_CLASS(HttpReply)
bool inheritProperties(const Http::Message *) override
Definition: HttpReply.cc:588
void calcMaxBodySize(HttpRequest &request) const
Definition: HttpReply.cc:545
void removeIrrelevantContentLength()
Some response status codes prohibit sending Content-Length (RFC 7230 section 3.3.2).
Definition: HttpReply.cc:607
bool receivedBodyTooLarge(HttpRequest &, int64_t receivedBodySize)
Definition: HttpReply.cc:516
bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) override
Definition: HttpReply.cc:399
int validatorsMatch(HttpReply const *other) const
Definition: HttpReply.cc:220
void packHeadersUsingSlowPacker(Packable &p) const
same as packHeadersUsingFastPacker() but assumes that p cannot quickly process small additions
Definition: HttpReply.cc:93
void packHeadersUsingFastPacker(Packable &p) const
Definition: HttpReply.cc:85
Pointer recreateOnNotModified(const HttpReply &reply304) const
Definition: HttpReply.cc:262
bool expectedBodyTooLarge(HttpRequest &request)
Definition: HttpReply.cc:524
static HttpReplyPointer MakeConnectionEstablished()
construct and return an HTTP/200 (Connection Established) response
Definition: HttpReply.cc:119
Definition: RequestMethod.h:27
Definition: HttpRequest.h:49
Definition: Parser.h:41
Definition: StatusLine.h:28
Definition: MemBuf.h:24
Definition: Packable.h:53
Definition: SquidString.h:26