stub_HttpHeader.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 "ETag.h"
11 #include "TimeOrTag.h"
12 
13 #define STUB_API "HttpHeader.cc"
14 #include "STUB.h"
15 
16 #include "HttpHeader.h"
19 HttpHeaderEntry *HttpHeaderEntry::parse(const char *, const char *, const http_hdr_owner_type) STUB_RETVAL(nullptr)
23 int64_t HttpHeaderEntry::getInt64() const STUB_RETVAL(0)
31 bool HttpHeader::update(HttpHeader const *) STUB_RETVAL(false)
33 int HttpHeader::parse(const char *, size_t, Http::ContentLengthInterpreter &) STUB_RETVAL(-1)
34 int HttpHeader::parse(const char *, size_t, bool, size_t &, Http::ContentLengthInterpreter &) STUB_RETVAL(-1)
35 void HttpHeader::packInto(Packable *, bool) const STUB
48 String HttpHeader::getByName(const char *) const STUB_RETVAL(String())
51 bool HttpHeader::hasNamed(const SBuf &, String *) const STUB_RETVAL(false)
52 bool HttpHeader::hasNamed(const char *, unsigned int, String *) const STUB_RETVAL(false)
53 SBuf HttpHeader::getByNameListMember(const char *, const char *, const char) const STUB_RETVAL(SBuf())
54 SBuf HttpHeader::getListMember(Http::HdrType, const char *, const char) const STUB_RETVAL(SBuf())
60 void HttpHeader::putStr(Http::HdrType, const char *) STUB
61 void HttpHeader::putAuth(const char *, const char *) STUB
62 void HttpHeader::putCc(const HttpHdrCc *) STUB
66 void HttpHeader::putWarning(const int, const char *const) STUB
67 void HttpHeader::putExt(const char *, const char *) STUB
71 const char *HttpHeader::getStr(Http::HdrType) const STUB_RETVAL(nullptr)
72 const char *HttpHeader::getLastStr(Http::HdrType) const STUB_RETVAL(nullptr)
73 HttpHdrCc *HttpHeader::getCc() const STUB_RETVAL(nullptr)
75 HttpHdrSc *HttpHeader::getSc() const STUB_RETVAL(nullptr)
80 int HttpHeader::hasListMember(Http::HdrType, const char *, const char) const STUB_RETVAL(0)
81 int HttpHeader::hasByNameListMember(const char *, const char *, const char) const STUB_RETVAL(0)
84 bool HttpHeader::Isolate(const char **, size_t, const char **, const char **) STUB_RETVAL(false)
85 bool HttpHeader::needUpdate(const HttpHeader *fresh) const STUB_RETVAL(false)
88 int httpHeaderParseQuotedString(const char *, const int, String *) STUB_RETVAL(-1)
90 void httpHeaderCalcMask(HttpHeaderMask *, Http::HdrType [], size_t) STUB
92 
int hasListMember(Http::HdrType id, const char *member, const char separator) const
Definition: HttpHeader.cc:1662
int delById(Http::HdrType id)
Definition: HttpHeader.cc:678
void removeConnectionHeaderEntries()
Definition: HttpHeader.cc:1727
const char * getLastStr(Http::HdrType id) const
Definition: HttpHeader.cc:1191
http_hdr_owner_type
Definition: HttpHeader.h:31
Definition: ETag.h:17
int getInt(Http::HdrType id) const
Definition: HttpHeader.cc:1132
Definition: SBuf.h:86
void putContRange(const HttpHdrContRange *cr)
Definition: HttpHeader.cc:1067
String getByName(const SBuf &name) const
Definition: HttpHeader.cc:885
HttpHeaderEntry * findEntry(Http::HdrType id) const
Definition: HttpHeader.cc:614
String getList(Http::HdrType id) const
Definition: HttpHeader.cc:825
int delByName(const SBuf &name)
Definition: HttpHeader.cc:659
void removeHopByHopEntries()
Definition: HttpHeader.cc:1710
static bool Isolate(const char **parse_start, size_t l, const char **blk_start, const char **blk_end)
Definition: HttpHeader.cc:325
void putExt(const char *name, const char *value)
Definition: HttpHeader.cc:1124
String getStrOrList(Http::HdrType id) const
Definition: HttpHeader.cc:859
HttpHeaderEntry * clone() const
Definition: HttpHeader.cc:1507
HttpHeaderEntry * getEntry(HttpHeaderPos *pos) const
Definition: HttpHeader.cc:595
SBuf getListMember(Http::HdrType id, const char *member, const char separator) const
Definition: HttpHeader.cc:965
bool needUpdate(const HttpHeader *fresh) const
check whether the fresh header has any new/changed updatable fields
Definition: HttpHeader.cc:249
int hasByNameListMember(const char *name, const char *member, const char separator) const
Definition: HttpHeader.cc:1686
void delAt(HttpHeaderPos pos, int &headers_deleted)
Definition: HttpHeader.cc:706
void append(const HttpHeader *src)
Definition: HttpHeader.cc:235
int getInt() const
Definition: HttpHeader.cc:1523
String getById(Http::HdrType id) const
Definition: HttpHeader.cc:894
ETag getETag(Http::HdrType id) const
Definition: HttpHeader.cc:1332
#define STUB_RETVAL(x)
Definition: STUB.h:41
HttpHdrContRange * getContRange() const
Definition: HttpHeader.cc:1276
int parse(const char *header_start, size_t len, Http::ContentLengthInterpreter &interpreter)
Definition: HttpHeader.cc:370
void httpHeaderInitModule()
int64_t getInt64() const
Definition: HttpHeader.cc:1535
void putTime(Http::HdrType id, time_t htime)
Definition: HttpHeader.cc:1026
void httpHeaderCalcMask(HttpHeaderMask *, Http::HdrType [], size_t)
HttpHeaderEntry(Http::HdrType id, const SBuf &name, const char *value)
Definition: HttpHeader.cc:1375
#define STUB
macro to stub a void function.
Definition: STUB.h:33
SBuf getByNameListMember(const char *name, const char *member, const char separator) const
Definition: HttpHeader.cc:954
static HttpHeaderEntry * parse(const char *field_start, const char *field_end, const http_hdr_owner_type msgType)
Definition: HttpHeader.cc:1407
void putSc(HttpHdrSc *sc)
Definition: HttpHeader.cc:1099
void putWarning(const int code, const char *const text)
add a Warning header
Definition: HttpHeader.cc:1115
int httpHeaderParseQuotedString(const char *, const int, String *)
bool update(HttpHeader const *fresh)
Definition: HttpHeader.cc:283
void refreshMask()
Definition: HttpHeader.cc:734
void putInt(Http::HdrType id, int number)
Definition: HttpHeader.cc:1008
time_t getTime(Http::HdrType id) const
Definition: HttpHeader.cc:1158
void addVia(const AnyP::ProtocolVersion &ver, const HttpHeader *from=0)
Definition: HttpHeader.cc:982
const char * getStr(Http::HdrType id) const
Definition: HttpHeader.cc:1175
HttpHdrCc * getCc() const
Definition: HttpHeader.cc:1206
ssize_t HttpHeaderPos
Definition: HttpHeader.h:45
void putInt64(Http::HdrType id, int64_t number)
Definition: HttpHeader.cc:1017
int has(Http::HdrType id) const
Definition: HttpHeader.cc:974
void putStr(Http::HdrType id, const char *str)
Definition: HttpHeader.cc:1035
void clean()
Definition: HttpHeader.cc:187
void packInto(Packable *p) const
Definition: HttpHeader.cc:1513
void putCc(const HttpHdrCc *cc)
Definition: HttpHeader.cc:1051
void updateWarnings()
Definition: HttpHeader.cc:263
HttpHeader & operator=(const HttpHeader &other)
Definition: HttpHeader.cc:173
void compact()
Definition: HttpHeader.cc:723
HttpHdrSc * getSc() const
Definition: HttpHeader.cc:1254
bool skipUpdateHeader(const Http::HdrType id) const
Definition: HttpHeader.cc:276
bool getByIdIfPresent(Http::HdrType id, String *result) const
Definition: HttpHeader.cc:908
void addEntry(HttpHeaderEntry *e)
Definition: HttpHeader.cc:748
SBuf getAuthToken(Http::HdrType id, const char *auth_scheme) const
Definition: HttpHeader.cc:1290
void insertEntry(HttpHeaderEntry *e)
Definition: HttpHeader.cc:774
TimeOrTag getTimeOrTag(Http::HdrType id) const
Definition: HttpHeader.cc:1345
void putRange(const HttpHdrRange *range)
Definition: HttpHeader.cc:1083
bool hasNamed(const SBuf &s, String *value=0) const
Definition: HttpHeader.cc:902
Definition: forward.h:21
void putAuth(const char *auth_scheme, const char *realm)
Definition: HttpHeader.cc:1044
void packInto(Packable *p, bool mask_sensitive_info=false) const
Definition: HttpHeader.cc:551
int64_t getInt64(Http::HdrType id) const
Definition: HttpHeader.cc:1145
HttpHdrRange * getRange() const
Definition: HttpHeader.cc:1235
SBuf httpHeaderQuoteString(const char *)
quotes string using RFC 7230 quoted-string rules

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors