stub_HttpRequest.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 "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 
22 void HttpRequest::initHTTP(const HttpRequestMethod &, AnyP::ProtocolType, const char *, const char *) STUB
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
32 #endif
33 #if ICAP_CLIENT
35 #endif
41 static const SBuf nilSBuf;
44 bool HttpRequest::parseFirstLine(const char *, const char *) STUB_RETVAL(false)
45 bool HttpRequest::expectingBody(const HttpRequestMethod &, int64_t &) const STUB_RETVAL(false)
46 bool HttpRequest::bodyNibbled() const STUB_RETVAL(false)
49 void HttpRequest::pack(Packable *) const STUB
55 void HttpRequest::ignoreRange(const char *) STUB
58 bool HttpRequest::sanityCheckStartLine(const char *, const size_t, Http::StatusCode *) STUB_RETVAL(false)
62 
void recordLookup(const Dns::LookupDetails &detail)
Definition: HttpRequest.cc:605
ConnStateData * pinnedConnection()
Definition: HttpRequest.cc:686
HttpRequest(const MasterXaction::Pointer &)
Definition: HttpRequest.cc:43
void initHTTP(const HttpRequestMethod &aMethod, AnyP::ProtocolType aProtocol, const char *schemeImage, const char *aUrlpath)
Definition: HttpRequest.cc:69
Definition: SBuf.h:86
int prefixLen() const
Definition: HttpRequest.cc:372
Adaptation::History::Pointer adaptLogHistory() const
Returns possibly nil history, creating it if adapt. logging is enabled.
Definition: HttpRequest.cc:418
Adaptation::History::Pointer adaptHistory(bool createIfNone=false) const
Returns possibly nil history, creating it if requested.
Definition: HttpRequest.cc:407
encapsulates DNS lookup results
Definition: LookupDetails.h:20
static HttpRequest * FromUrlXXX(const char *url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
Definition: HttpRequest.cc:546
const SBuf storeId()
Definition: HttpRequest.cc:694
NotePairs::Pointer notes()
Definition: HttpRequest.cc:713
const SBuf & effectiveRequestUri() const
RFC 7230 section 5.5 - Effective Request URI.
Definition: HttpRequest.cc:705
StatusCode
Definition: StatusCode.h:20
void adaptHistoryImport(const HttpRequest &them)
Makes their history ours, throwing on conflicts.
Definition: HttpRequest.cc:424
virtual bool expectingBody(const HttpRequestMethod &unused, int64_t &) const
Definition: HttpRequest.cc:506
#define STUB_RETVAL(x)
Definition: STUB.h:41
void swapOut(StoreEntry *e)
Definition: HttpRequest.cc:337
void pack(Packable *p) const
Definition: HttpRequest.cc:347
virtual bool inheritProperties(const Http::Message *)
Definition: HttpRequest.cc:216
bool bodyNibbled() const
Definition: HttpRequest.cc:443
#define STUB
macro to stub a void function.
Definition: STUB.h:33
virtual void packFirstLineInto(Packable *p, bool full_uri) const
Definition: HttpRequest.cc:490
common parts of HttpRequest and HttpReply
Definition: Message.h:25
char * canonicalCleanUrl() const
Definition: HttpRequest.cc:775
static HttpRequest * FromUrl(const SBuf &url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
Definition: HttpRequest.cc:535
void clearError()
clear error details, useful for retries/repeats
Definition: HttpRequest.cc:482
static void httpRequestPack(void *obj, Packable *p)
void ignoreRange(const char *reason)
forgets about the cached Range header (for a reason)
Definition: HttpRequest.cc:646
virtual void reset()
Definition: HttpRequest.cc:170
bool maybeCacheable()
Definition: HttpRequest.cc:556
bool parseFirstLine(const char *start, const char *end)
Definition: HttpRequest.cc:297
int64_t getRangeOffsetLimit()
Definition: HttpRequest.cc:619
void detailError(err_type aType, int aDetail)
sets error detail if no earlier detail was available
Definition: HttpRequest.cc:468
bool conditional() const
has at least one recognized If-* header
Definition: HttpRequest.cc:597
ProtocolType
Definition: ProtocolType.h:23
virtual HttpRequest * clone() const
Definition: HttpRequest.cc:177
bool multipartRangeRequest() const
Definition: HttpRequest.cc:437
virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error)
Definition: HttpRequest.cc:271
void init()
Definition: HttpRequest.cc:77
Definition: forward.h:21
void clean()
Definition: HttpRequest.cc:123
#define NULL
Definition: types.h:166
virtual void hdrCacheInit()
Definition: HttpRequest.cc:382
bool canHandle1xx() const
whether the client is likely to be able to handle a 1xx reply
Definition: HttpRequest.cc:660
err_type
Definition: err_type.h:12
Adaptation::Icap::History::Pointer icapHistory() const
Returns possibly nil history, creating it if icap logging is enabled.
Definition: HttpRequest.cc:392

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors