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
54 void HttpRequest::ignoreRange(const char *) STUB
57 bool HttpRequest::sanityCheckStartLine(const char *, const size_t, Http::StatusCode *) STUB_RETVAL(false)
61 
void recordLookup(const Dns::LookupDetails &detail)
Definition: HttpRequest.cc:587
ConnStateData * pinnedConnection()
Definition: HttpRequest.cc:668
HttpRequest(const MasterXaction::Pointer &)
Definition: HttpRequest.cc:42
void initHTTP(const HttpRequestMethod &aMethod, AnyP::ProtocolType aProtocol, const char *schemeImage, const char *aUrlpath)
Definition: HttpRequest.cc:68
Definition: SBuf.h:86
int prefixLen() const
Definition: HttpRequest.cc:379
Adaptation::History::Pointer adaptLogHistory() const
Returns possibly nil history, creating it if adapt. logging is enabled.
Definition: HttpRequest.cc:425
Adaptation::History::Pointer adaptHistory(bool createIfNone=false) const
Returns possibly nil history, creating it if requested.
Definition: HttpRequest.cc:414
encapsulates DNS lookup results
Definition: LookupDetails.h:20
const SBuf storeId()
Definition: HttpRequest.cc:676
NotePairs::Pointer notes()
Definition: HttpRequest.cc:695
const SBuf & effectiveRequestUri() const
RFC 7230 section 5.5 - Effective Request URI.
Definition: HttpRequest.cc:687
StatusCode
Definition: StatusCode.h:20
void adaptHistoryImport(const HttpRequest &them)
Makes their history ours, throwing on conflicts.
Definition: HttpRequest.cc:431
virtual bool expectingBody(const HttpRequestMethod &unused, int64_t &) const
Definition: HttpRequest.cc:494
#define STUB_RETVAL(x)
Definition: STUB.h:41
void swapOut(StoreEntry *e)
Definition: HttpRequest.cc:344
void pack(Packable *p) const
Definition: HttpRequest.cc:354
virtual bool inheritProperties(const Http::Message *)
Definition: HttpRequest.cc:215
bool bodyNibbled() const
Definition: HttpRequest.cc:450
#define STUB
macro to stub a void function.
Definition: STUB.h:33
virtual void packFirstLineInto(Packable *p, bool full_uri) const
Definition: HttpRequest.cc:478
common parts of HttpRequest and HttpReply
Definition: Message.h:25
char * canonicalCleanUrl() const
Definition: HttpRequest.cc:757
void clearError()
clear error details, useful for retries/repeats
Definition: HttpRequest.cc:470
static HttpRequest * FromUrl(const char *url, const MasterXaction::Pointer &, const HttpRequestMethod &method=Http::METHOD_GET)
Definition: HttpRequest.cc:523
static void httpRequestPack(void *obj, Packable *p)
void ignoreRange(const char *reason)
forgets about the cached Range header (for a reason)
Definition: HttpRequest.cc:628
virtual void reset()
Definition: HttpRequest.cc:169
bool maybeCacheable()
Definition: HttpRequest.cc:538
bool parseFirstLine(const char *start, const char *end)
Definition: HttpRequest.cc:296
int64_t getRangeOffsetLimit()
Definition: HttpRequest.cc:601
void detailError(err_type aType, int aDetail)
sets error detail if no earlier detail was available
Definition: HttpRequest.cc:456
bool conditional() const
has at least one recognized If-* header
Definition: HttpRequest.cc:579
ProtocolType
Definition: ProtocolType.h:22
virtual HttpRequest * clone() const
Definition: HttpRequest.cc:176
bool multipartRangeRequest() const
Definition: HttpRequest.cc:444
virtual bool sanityCheckStartLine(const char *buf, const size_t hdr_len, Http::StatusCode *error)
Definition: HttpRequest.cc:270
void init()
Definition: HttpRequest.cc:76
void clean()
Definition: HttpRequest.cc:122
#define NULL
Definition: types.h:166
virtual void hdrCacheInit()
Definition: HttpRequest.cc:389
bool canHandle1xx() const
whether the client is likely to be able to handle a 1xx reply
Definition: HttpRequest.cc:642
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:399

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors