stub_HttpReply.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #include "squid.h"
10 #include "HttpReply.h"
11 
12 #define STUB_API "HttpReply.cc"
13 #include "tests/STUB.h"
14 
16  expires(0), surrogate_control(nullptr), keep_alive(0),
17  protoPrefix("HTTP/"), do_clean(false), bodySizeMax(-2), content_range(nullptr)
18 {STUB_NOP}
20 void HttpReply::setHeaders(Http::StatusCode, const char *, const char *, int64_t, time_t, time_t) STUB
23 void HttpReply::reset() STUB
24 bool HttpReply::sanityCheckStartLine(const char *, const size_t, Http::StatusCode *) STUB_RETVAL(false)
26 bool HttpReply::expectingBody(const HttpRequestMethod&, int64_t&) const STUB_RETVAL(false)
27 bool HttpReply::parseFirstLine(const char *, const char *) STUB_RETVAL(false)
32 int64_t HttpReply::bodySize(const HttpRequestMethod&) const STUB_RETVAL(0)
33 const HttpHdrContRange *HttpReply::contentRange() const STUB_RETVAL(nullptr)
34 void HttpReply::configureContentLengthInterpreter(Http::ContentLengthInterpreter &) STUB
35 
@ hoReply
Definition: HttpHeader.h:37
RefCount< HttpReply > Pointer
Definition: HttpReply.h:29
bool do_clean
Definition: HttpReply.h:62
int64_t bodySizeMax
Definition: HttpReply.h:155
virtual int httpMsgParseError()
Definition: HttpReply.cc:474
#define STUB_RETVAL(x)
Definition: STUB.h:41
~HttpReply()
Definition: HttpReply.cc:42
int64_t bodySize(const HttpRequestMethod &) const
Definition: HttpReply.cc:374
virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error)
Definition: HttpReply.cc:399
void packHeadersUsingSlowPacker(Packable &p) const
same as packHeadersUsingFastPacker() but assumes that p cannot quickly process small additions
Definition: HttpReply.cc:93
time_t last_modified
Definition: HttpReply.h:42
StatusCode
Definition: StatusCode.h:20
Definition: forward.h:22
void packHeadersUsingFastPacker(Packable &p) const
Definition: HttpReply.cc:85
HttpReply * clone() const
Definition: HttpReply.cc:572
virtual bool expectingBody(const HttpRequestMethod &, int64_t &) const
Definition: HttpReply.cc:487
time_t expires
Definition: HttpReply.h:44
#define NULL
Definition: types.h:166
virtual bool inheritProperties(const Http::Message *)
Definition: HttpReply.cc:588
#define STUB
macro to stub a void function.
Definition: STUB.h:33
time_t date
Definition: HttpReply.h:40
String protoPrefix
Definition: HttpReply.h:60
const HttpHdrContRange * contentRange() const
Definition: HttpReply.cc:342
virtual void configureContentLengthInterpreter(Http::ContentLengthInterpreter &)
configures the interpreter as needed
Definition: HttpReply.cc:460
#define STUB_NOP
Definition: STUB.h:37
HttpHdrSc * surrogate_control
Definition: HttpReply.h:48
HttpHdrContRange * content_range
parsed Content-Range; nil for non-206 responses!
Definition: HttpReply.h:157
Message(http_hdr_owner_type)
Definition: Message.cc:22
virtual void reset()
Definition: HttpReply.cc:57
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
Definition: HttpReply.cc:167
#define false
Definition: GnuRegex.c:233
virtual bool parseFirstLine(const char *start, const char *end)
Definition: HttpReply.cc:454
virtual void hdrCacheInit()
Definition: HttpReply.cc:318
short int keep_alive
Definition: HttpReply.h:53
Pointer recreateOnNotModified(const HttpReply &reply304) const
Definition: HttpReply.cc:262

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors