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:457
size_t parseTerminatedPrefix(const char *, size_t)
Definition: HttpReply.cc:463
HttpHdrContRange * content_range
parsed Content-Range; nil for non-206 responses!
Definition: HttpReply.h:163
void configureContentLengthInterpreter(Http::ContentLengthInterpreter &) override
configures the interpreter as needed
Definition: HttpReply.cc:501
bool expectingBody(const HttpRequestMethod &, int64_t &) const override
Definition: HttpReply.cc:528
void packFirstLineInto(Packable *p, bool) const override
Definition: HttpReply.h:166
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
Definition: HttpReply.cc:170
MEMPROXY_CLASS(HttpReply)
bool inheritProperties(const Http::Message *) override
Definition: HttpReply.cc:629
void calcMaxBodySize(HttpRequest &request) const
Definition: HttpReply.cc:586
void removeIrrelevantContentLength()
Some response status codes prohibit sending Content-Length (RFC 7230 section 3.3.2).
Definition: HttpReply.cc:648
bool receivedBodyTooLarge(HttpRequest &, int64_t receivedBodySize)
Definition: HttpReply.cc:557
bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) override
Definition: HttpReply.cc:402
int validatorsMatch(HttpReply const *other) const
Definition: HttpReply.cc:223
void packHeadersUsingSlowPacker(Packable &p) const
same as packHeadersUsingFastPacker() but assumes that p cannot quickly process small additions
Definition: HttpReply.cc:95
void packHeadersUsingFastPacker(Packable &p) const
Definition: HttpReply.cc:87
Pointer recreateOnNotModified(const HttpReply &reply304) const
Definition: HttpReply.cc:265
bool expectedBodyTooLarge(HttpRequest &request)
Definition: HttpReply.cc:565
static HttpReplyPointer MakeConnectionEstablished()
construct and return an HTTP/200 (Connection Established) response
Definition: HttpReply.cc:121
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