Squid Web Cache
master
Loading...
Searching...
No Matches
stub_HttpHeader.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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 "
tests/STUB.h
"
15
16
#include "
HttpHeader.h
"
17
HttpHeaderEntry::HttpHeaderEntry
(
Http::HdrType
,
const
SBuf
&,
const
char
*) {
STUB
}
18
HttpHeaderEntry::~HttpHeaderEntry
() {
STUB
}
19
HttpHeaderEntry
*
HttpHeaderEntry::parse
(
const
char
*,
const
char
*,
const
http_hdr_owner_type
)
STUB_RETVAL
(
nullptr
)
20
HttpHeaderEntry
*
HttpHeaderEntry
::clone() const
STUB_RETVAL
(
nullptr
)
21
void
HttpHeaderEntry
::packInto(
Packable
*) const
STUB
22
int
HttpHeaderEntry
::getInt() const
STUB_RETVAL
(0)
23
int64_t
HttpHeaderEntry
::getInt64() const
STUB_RETVAL
(0)
24
HttpHeader
::
HttpHeader
(const
http_hdr_owner_type
) {
STUB
}
25
HttpHeader::HttpHeader
(
const
HttpHeader
&) {
STUB
}
26
HttpHeader::~HttpHeader
() {
STUB
}
27
HttpHeader
&
HttpHeader::operator =
(
const
HttpHeader
&)
STUB_RETVAL
(*
this
)
28
void
HttpHeader
::clean()
STUB
29
void
HttpHeader
::append(const
HttpHeader
*)
STUB
30
void
HttpHeader
::update(const
HttpHeader
*)
STUB
31
void
HttpHeader
::compact()
STUB
32
int
HttpHeader
::
parse
(const
char
*,
size_t
,
Http
::ContentLengthInterpreter &)
STUB_RETVAL
(-1)
33
int
HttpHeader
::
parse
(const
char
*,
size_t
,
bool
,
size_t
&,
Http
::ContentLengthInterpreter &)
STUB_RETVAL
(-1)
34
void
HttpHeader
::packInto(
Packable
*,
bool
) const
STUB
35
HttpHeaderEntry
*
HttpHeader
::getEntry(
HttpHeaderPos
*) const
STUB_RETVAL
(
nullptr
)
36
HttpHeaderEntry
*
HttpHeader
::findEntry(
Http
::HdrType) const
STUB_RETVAL
(
nullptr
)
37
int
HttpHeader
::delByName(const
SBuf
&)
STUB_RETVAL
(0)
38
int
HttpHeader
::delById(
Http
::HdrType)
STUB_RETVAL
(0)
39
void
HttpHeader
::delAt(
HttpHeaderPos
,
int
&)
STUB
40
void
HttpHeader
::refreshMask()
STUB
41
void
HttpHeader
::addEntry(
HttpHeaderEntry
*)
STUB
42
String
HttpHeader
::getList(
Http
::HdrType) const
STUB_RETVAL
(
String
())
43
bool
HttpHeader
::getList(
Http
::HdrType,
String
*) const
STUB_RETVAL
(false)
44
String
HttpHeader
::getStrOrList(
Http
::HdrType) const
STUB_RETVAL
(
String
())
45
String
HttpHeader
::getByName(const
SBuf
&) const
STUB_RETVAL
(
String
())
46
String
HttpHeader
::getByName(const
char
*) const
STUB_RETVAL
(
String
())
47
String
HttpHeader
::getById(
Http
::HdrType) const
STUB_RETVAL
(
String
())
48
bool
HttpHeader
::getByIdIfPresent(
Http
::HdrType,
String
*) const
STUB_RETVAL
(false)
49
bool
HttpHeader
::hasNamed(const
SBuf
&,
String
*) const
STUB_RETVAL
(false)
50
bool
HttpHeader
::hasNamed(const
char
*,
unsigned
int
,
String
*) const
STUB_RETVAL
(false)
51
SBuf
HttpHeader
::getByNameListMember(const
char
*, const
char
*, const
char
) const
STUB_RETVAL
(
SBuf
())
52
SBuf
HttpHeader
::
getListMember
(
Http
::HdrType, const
char
*, const
char
) const
STUB_RETVAL
(
SBuf
())
53
int
HttpHeader
::has(
Http
::HdrType) const
STUB_RETVAL
(0)
54
void
HttpHeader
::addVia(const
AnyP
::ProtocolVersion &, const
HttpHeader
*)
STUB
55
void
HttpHeader
::putInt(
Http
::HdrType,
int
)
STUB
56
void
HttpHeader
::putInt64(
Http
::HdrType, int64_t )
STUB
57
void
HttpHeader
::putTime(
Http
::HdrType, time_t)
STUB
58
void
HttpHeader
::putStr(
Http
::HdrType, const
char
*)
STUB
59
void
HttpHeader
::putAuth(const
char
*, const
char
*)
STUB
60
void
HttpHeader
::putCc(const
HttpHdrCc
&)
STUB
61
void
HttpHeader
::putContRange(const
HttpHdrContRange
*)
STUB
62
void
HttpHeader
::putRange(const
HttpHdrRange
*)
STUB
63
void
HttpHeader
::putSc(
HttpHdrSc
*)
STUB
64
void
HttpHeader
::putExt(const
char
*, const
char
*)
STUB
65
void
HttpHeader
::updateOrAddStr(
Http
::HdrType, const
SBuf
&)
STUB
66
int
HttpHeader
::getInt(
Http
::HdrType) const
STUB_RETVAL
(0)
67
int64_t
HttpHeader
::getInt64(
Http
::HdrType) const
STUB_RETVAL
(0)
68
time_t
HttpHeader
::getTime(
Http
::HdrType) const
STUB_RETVAL
(0)
69
const
char
*
HttpHeader
::getStr(
Http
::HdrType) const
STUB_RETVAL
(
nullptr
)
70
const
char
*
HttpHeader
::getLastStr(
Http
::HdrType) const
STUB_RETVAL
(
nullptr
)
71
HttpHdrCc
*
HttpHeader
::getCc() const
STUB_RETVAL
(
nullptr
)
72
HttpHdrRange
*
HttpHeader
::getRange() const
STUB_RETVAL
(
nullptr
)
73
HttpHdrSc
*
HttpHeader
::getSc() const
STUB_RETVAL
(
nullptr
)
74
HttpHdrContRange
*
HttpHeader
::getContRange() const
STUB_RETVAL
(
nullptr
)
75
SBuf
HttpHeader
::getAuthToken(
Http
::HdrType, const
char
*) const
STUB_RETVAL
(
SBuf
())
76
ETag
HttpHeader
::getETag(
Http
::HdrType) const
STUB_RETVAL
(
ETag
())
77
TimeOrTag
HttpHeader
::getTimeOrTag(
Http
::HdrType) const
STUB_RETVAL
(
TimeOrTag
())
78
int
HttpHeader
::hasListMember(
Http
::HdrType, const
char
*, const
char
) const
STUB_RETVAL
(0)
79
int
HttpHeader
::hasByNameListMember(const
char
*, const
char
*, const
char
) const
STUB_RETVAL
(0)
80
void
HttpHeader
::removeHopByHopEntries()
STUB
81
void
HttpHeader
::removeConnectionHeaderEntries()
STUB
82
bool
HttpHeader
::Isolate(const
char
**,
size_t
, const
char
**, const
char
**)
STUB_RETVAL
(false)
83
bool
HttpHeader
::needUpdate(const
HttpHeader
*) const
STUB_RETVAL
(false)
84
bool
HttpHeader
::skipUpdateHeader(const
Http
::HdrType) const
STUB_RETVAL
(false)
85
int
httpHeaderParseQuotedString
(const
char
*, const
int
,
String
*)
STUB_RETVAL
(-1)
86
SBuf
Http
::SlowlyParseQuotedString(const
char
*, const
char
*,
size_t
)
STUB_RETVAL
(
SBuf
())
87
SBuf
httpHeaderQuoteString
(const
char
*)
STUB_RETVAL
(
SBuf
())
88
void
httpHeaderCalcMask
(
HttpHeaderMask
*,
Http
::HdrType [],
size_t
)
STUB
89
void
httpHeaderInitModule
()
STUB
90
ETag.h
HttpHeaderMask
char HttpHeaderMask[12]
Definition
HttpHeaderMask.h:13
httpHeaderQuoteString
SBuf httpHeaderQuoteString(const char *raw)
quotes string using RFC 7230 quoted-string rules
Definition
HttpHeader.cc:237
httpHeaderParseQuotedString
int httpHeaderParseQuotedString(const char *start, const int len, String *val)
Definition
HttpHeader.cc:167
httpHeaderInitModule
void httpHeaderInitModule(void)
Definition
HttpHeader.cc:138
HttpHeader.h
http_hdr_owner_type
http_hdr_owner_type
Definition
HttpHeader.h:31
httpHeaderCalcMask
void httpHeaderCalcMask(HttpHeaderMask *mask, Http::HdrType http_hdr_type_enums[], size_t count)
HttpHeaderPos
ssize_t HttpHeaderPos
Definition
HttpHeader.h:45
STUB.h
STUB
#define STUB
macro to stub a void function.
Definition
STUB.h:34
STUB_RETVAL
#define STUB_RETVAL(x)
Definition
STUB.h:42
getListMember
SBuf getListMember(const String &list, const char *key, const char delimiter)
Definition
StrList.cc:136
TimeOrTag.h
ETag
Definition
ETag.h:18
HttpHdrCc
Definition
HttpHdrCc.h:44
HttpHdrContRange
Definition
HttpHdrContRange.h:18
HttpHdrRange
Definition
HttpHeaderRange.h:52
HttpHdrSc
Definition
HttpHdrSc.h:25
HttpHeaderEntry
Definition
HttpHeader.h:51
HttpHeaderEntry::parse
static HttpHeaderEntry * parse(const char *field_start, const char *field_end, const http_hdr_owner_type msgType)
Definition
HttpHeader.cc:1525
HttpHeaderEntry::HttpHeaderEntry
HttpHeaderEntry(Http::HdrType id, const SBuf &name, const char *value)
Definition
HttpHeader.cc:1493
HttpHeaderEntry::~HttpHeaderEntry
~HttpHeaderEntry()
Definition
HttpHeader.cc:1511
HttpHeader
Definition
HttpHeader.h:75
HttpHeader::HttpHeader
HttpHeader(const http_hdr_owner_type owner)
Definition
HttpHeader.cc:280
HttpHeader::operator=
HttpHeader & operator=(const HttpHeader &other)
Definition
HttpHeader.cc:303
HttpHeader::~HttpHeader
~HttpHeader()
Definition
HttpHeader.cc:296
Packable
Definition
Packable.h:53
SBuf
Definition
SBuf.h:94
String
Definition
SquidString.h:27
TimeOrTag
Definition
TimeOrTag.h:18
AnyP
Definition
forward.h:15
Http
Definition
forward.h:18
Http::HdrType
HdrType
Definition
RegisteredHeaders.h:21
parse
static struct node * parse(FILE *fp)
Definition
parse.c:965
squid.h
squid
src
tests
stub_HttpHeader.cc
Generated by
1.9.8