stub_HttpReply.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 
15 HttpReply::HttpReply() : Http::Message(hoReply), date (0), last_modified (0),
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 status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires_) STUB
24 void httpBodyPackInto(const HttpBody *, Packable *) STUB
25 bool HttpReply::sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error) STUB_RETVAL(false)
27 bool HttpReply::expectingBody(const HttpRequestMethod&, int64_t&) const STUB_RETVAL(false)
28 bool HttpReply::parseFirstLine(const char *start, const char *end) STUB_RETVAL(false)
33 int64_t HttpReply::bodySize(const HttpRequestMethod&) const STUB_RETVAL(0)
36 
int64_t bodySize(const HttpRequestMethod &) const
Definition: HttpReply.cc:371
void error(char *format,...)
~HttpReply()
Definition: HttpReply.cc:43
const HttpHdrContRange * contentRange() const
Definition: HttpReply.cc:339
virtual void hdrCacheInit()
Definition: HttpReply.cc:315
HttpReply * clone() const
Definition: HttpReply.cc:569
virtual int httpMsgParseError()
Definition: HttpReply.cc:471
virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error)
Definition: HttpReply.cc:396
StatusCode
Definition: StatusCode.h:20
#define STUB_RETVAL(x)
Definition: STUB.h:41
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
Definition: HttpReply.cc:161
bool updateOnNotModified(HttpReply const *other)
Definition: HttpReply.cc:256
virtual bool expectingBody(const HttpRequestMethod &, int64_t &) const
Definition: HttpReply.cc:484
#define STUB
macro to stub a void function.
Definition: STUB.h:33
common parts of HttpRequest and HttpReply
Definition: Message.h:25
void packHeadersUsingFastPacker(Packable &p) const
Definition: HttpReply.cc:86
virtual bool parseFirstLine(const char *start, const char *end)
Definition: HttpReply.cc:451
void const char * buf
Definition: stub_helper.cc:16
virtual void reset()
Definition: HttpReply.cc:58
#define STUB_NOP
Definition: STUB.h:37
virtual void configureContentLengthInterpreter(Http::ContentLengthInterpreter &)
configures the interpreter as needed
Definition: HttpReply.cc:457
Definition: forward.h:21
#define NULL
Definition: types.h:166
virtual bool inheritProperties(const Http::Message *)
Definition: HttpReply.cc:585
#define false
Definition: GnuRegex.c:233
void packHeadersUsingSlowPacker(Packable &p) const
same as packHeadersUsingFastPacker() but assumes that p cannot quickly process small additions ...
Definition: HttpReply.cc:94

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors