stub_HttpRequest.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 "AccessLogEntry.h"
11 #include "HttpRequest.h"
12 
13 #define STUB_API "HttpRequest.cc"
14 #include "tests/STUB.h"
15 
16 // void httpRequestPack(void *obj, Packable *p);
17 
21 void HttpRequest::reset() STUB
22 void HttpRequest::initHTTP(const HttpRequestMethod &, AnyP::ProtocolType, const char *, const char *) STUB
24 bool HttpRequest::maybeCacheable() STUB_RETVAL(false)
25 bool HttpRequest::conditional() const STUB_RETVAL(false)
26 bool HttpRequest::canHandle1xx() const STUB_RETVAL(false)
27 char * HttpRequest::canonicalCleanUrl() const STUB_RETVAL(nullptr)
28 #if USE_ADAPTATION
30 Adaptation::History::Pointer HttpRequest::adaptHistory(bool) const STUB_RETVAL(Adaptation::History::Pointer())
31 void HttpRequest::adaptHistoryImport(const HttpRequest &) STUB
32 #endif
33 #if ICAP_CLIENT
35 #endif
38 void HttpRequest::clean() STUB
39 void HttpRequest::init() STUB
40 static const SBuf nilSBuf;
41 const SBuf &HttpRequest::effectiveRequestUri() const STUB_RETVAL(nilSBuf)
42 bool HttpRequest::multipartRangeRequest() const STUB_RETVAL(false)
43 bool HttpRequest::parseFirstLine(const char *, const char *) STUB_RETVAL(false)
44 bool HttpRequest::expectingBody(const HttpRequestMethod &, int64_t &) const STUB_RETVAL(false)
45 bool HttpRequest::bodyNibbled() const STUB_RETVAL(false)
46 int HttpRequest::prefixLen() const STUB_RETVAL(0)
47 void HttpRequest::swapOut(StoreEntry *) STUB
48 void HttpRequest::pack(Packable *) const STUB
50 HttpRequest * HttpRequest::FromUrl(const SBuf &, const MasterXaction::Pointer &, const HttpRequestMethod &) STUB_RETVAL(nullptr)
51 HttpRequest * HttpRequest::FromUrlXXX(const char *, const MasterXaction::Pointer &, const HttpRequestMethod &) STUB_RETVAL(nullptr)
52 ConnStateData *HttpRequest::pinnedConnection() STUB_RETVAL(NULL)
54 void HttpRequest::ignoreRange(const char *) STUB
55 int64_t HttpRequest::getRangeOffsetLimit() STUB_RETVAL(0)
56 void HttpRequest::packFirstLineInto(Packable *, bool) const STUB
57 bool HttpRequest::sanityCheckStartLine(const char *, const size_t, Http::StatusCode *) STUB_RETVAL(false)
61 
RefCount< HttpReply > Pointer
Definition: HttpReply.h:29
#define STUB_RETVAL(x)
Definition: STUB.h:41
void clearError()
clear error details, useful for retries/repeats
Definition: HttpRequest.cc:466
Definition: SBuf.h:94
void httpRequestPack(void *obj, Packable *p)
Definition: HttpRequest.cc:362
virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error)
Definition: HttpReply.cc:399
StatusCode
Definition: StatusCode.h:20
Definition: forward.h:22
static const char * storeId(const int i)
Definition: testRock.cc:180
HttpReply * clone() const
Definition: HttpReply.cc:572
virtual void packFirstLineInto(Packable *p, bool) const
Definition: HttpReply.h:160
ProtocolType
Definition: ProtocolType.h:23
virtual bool expectingBody(const HttpRequestMethod &, int64_t &) const
Definition: HttpReply.cc:487
#define NULL
Definition: types.h:166
Definition: forward.h:15
void recordLookup(const Dns::LookupDetails &detail)
Definition: HttpRequest.cc:588
MemBuf * pack() const
Definition: HttpReply.cc:110
Adaptation::Icap::History::Pointer icapHistory() const
Returns possibly nil history, creating it if icap logging is enabled.
Definition: HttpRequest.cc:390
virtual bool inheritProperties(const Http::Message *)
Definition: HttpReply.cc:588
HttpRequest(const MasterXaction::Pointer &)
Definition: HttpRequest.cc:43
encapsulates DNS lookup results
Definition: LookupDetails.h:21
void init()
Definition: HttpReply.cc:49
#define STUB
macro to stub a void function.
Definition: STUB.h:33
Adaptation::History::Pointer adaptLogHistory() const
Returns possibly nil history, creating it if adapt. logging is enabled.
Definition: HttpRequest.cc:416
void clean()
Definition: HttpReply.cc:71
Message(http_hdr_owner_type)
Definition: Message.cc:22
virtual void reset()
Definition: HttpReply.cc:57
#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
@ hoRequest
Definition: HttpHeader.h:36

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors