stub_HttpReply.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
15HttpReply::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)
20void HttpReply::setHeaders(Http::StatusCode, const char *, const char *, int64_t, time_t, time_t) STUB
21void HttpReply::packHeadersUsingFastPacker(Packable&) const STUB
22void HttpReply::packHeadersUsingSlowPacker(Packable&) const STUB
23void HttpReply::reset() STUB
24bool HttpReply::sanityCheckStartLine(const char *, const size_t, Http::StatusCode *) STUB_RETVAL(false)
25int HttpReply::httpMsgParseError() STUB_RETVAL(0)
26bool HttpReply::expectingBody(const HttpRequestMethod&, int64_t&) const STUB_RETVAL(false)
27size_t HttpReply::parseTerminatedPrefix(const char *, size_t) STUB_RETVAL(0)
28size_t HttpReply::prefixLen() const STUB_RETVAL(0)
29bool HttpReply::parseFirstLine(const char *, const char *) STUB_RETVAL(false)
30void HttpReply::hdrCacheInit() STUB
31HttpReply * HttpReply::clone() const STUB_RETVAL(nullptr)
32bool HttpReply::inheritProperties(const Http::Message *) STUB_RETVAL(false)
33HttpReply::Pointer HttpReply::recreateOnNotModified(const HttpReply &) const STUB_RETVAL(nullptr)
34int64_t HttpReply::bodySize(const HttpRequestMethod&) const STUB_RETVAL(0)
35const HttpHdrContRange *HttpReply::contentRange() const STUB_RETVAL(nullptr)
36void HttpReply::configureContentLengthInterpreter(Http::ContentLengthInterpreter &) STUB
37
@ hoReply
Definition: HttpHeader.h:37
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_NOP
Definition: STUB.h:37
#define STUB_RETVAL(x)
Definition: STUB.h:41
~HttpReply() override
Definition: HttpReply.cc:44
Definition: forward.h:18
StatusCode
Definition: StatusCode.h:20

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors