Go to the documentation of this file.
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 */
9#include "squid.h"
10#include "ETag.h"
11#include "TimeOrTag.h"
13#define STUB_API ""
14#include "tests/STUB.h"
16#include "HttpHeader.h"
19HttpHeaderEntry *HttpHeaderEntry::parse(const char *, const char *, const http_hdr_owner_type) STUB_RETVAL(nullptr)
20HttpHeaderEntry *HttpHeaderEntry::clone() const STUB_RETVAL(nullptr)
21void HttpHeaderEntry::packInto(Packable *) const STUB
22int HttpHeaderEntry::getInt() const STUB_RETVAL(0)
23int64_t HttpHeaderEntry::getInt64() const STUB_RETVAL(0)
29void HttpHeader::clean() STUB
30void HttpHeader::append(const HttpHeader *) STUB
31void HttpHeader::update(const HttpHeader *) STUB
32void HttpHeader::compact() STUB
33int HttpHeader::parse(const char *, size_t, Http::ContentLengthInterpreter &) STUB_RETVAL(-1)
34int HttpHeader::parse(const char *, size_t, bool, size_t &, Http::ContentLengthInterpreter &) STUB_RETVAL(-1)
35void HttpHeader::packInto(Packable *, bool) const STUB
36HttpHeaderEntry *HttpHeader::getEntry(HttpHeaderPos *) const STUB_RETVAL(nullptr)
37HttpHeaderEntry *HttpHeader::findEntry(Http::HdrType) const STUB_RETVAL(nullptr)
38int HttpHeader::delByName(const SBuf &) STUB_RETVAL(0)
39int HttpHeader::delById(Http::HdrType) STUB_RETVAL(0)
40void HttpHeader::delAt(HttpHeaderPos, int &) STUB
41void HttpHeader::refreshMask() STUB
42void HttpHeader::addEntry(HttpHeaderEntry *) STUB
43void HttpHeader::insertEntry(HttpHeaderEntry *) STUB
45bool HttpHeader::getList(Http::HdrType, String *) const STUB_RETVAL(false)
46String HttpHeader::getStrOrList(Http::HdrType) const STUB_RETVAL(String())
47String HttpHeader::getByName(const SBuf &) const STUB_RETVAL(String())
48String HttpHeader::getByName(const char *) const STUB_RETVAL(String())
50bool HttpHeader::getByIdIfPresent(Http::HdrType, String *) const STUB_RETVAL(false)
51bool HttpHeader::hasNamed(const SBuf &, String *) const STUB_RETVAL(false)
52bool HttpHeader::hasNamed(const char *, unsigned int, String *) const STUB_RETVAL(false)
53SBuf HttpHeader::getByNameListMember(const char *, const char *, const char) const STUB_RETVAL(SBuf())
54SBuf HttpHeader::getListMember(Http::HdrType, const char *, const char) const STUB_RETVAL(SBuf())
55int HttpHeader::has(Http::HdrType) const STUB_RETVAL(0)
56void HttpHeader::addVia(const AnyP::ProtocolVersion &, const HttpHeader *) STUB
57void HttpHeader::putInt(Http::HdrType, int) STUB
58void HttpHeader::putInt64(Http::HdrType, int64_t ) STUB
59void HttpHeader::putTime(Http::HdrType, time_t) STUB
60void HttpHeader::putStr(Http::HdrType, const char *) STUB
61void HttpHeader::putAuth(const char *, const char *) STUB
62void HttpHeader::putCc(const HttpHdrCc *) STUB
63void HttpHeader::putContRange(const HttpHdrContRange *) STUB
64void HttpHeader::putRange(const HttpHdrRange *) STUB
65void HttpHeader::putSc(HttpHdrSc *) STUB
66void HttpHeader::putExt(const char *, const char *) STUB
67int HttpHeader::getInt(Http::HdrType) const STUB_RETVAL(0)
68int64_t HttpHeader::getInt64(Http::HdrType) const STUB_RETVAL(0)
69time_t HttpHeader::getTime(Http::HdrType) const STUB_RETVAL(0)
70const char *HttpHeader::getStr(Http::HdrType) const STUB_RETVAL(nullptr)
71const char *HttpHeader::getLastStr(Http::HdrType) const STUB_RETVAL(nullptr)
72HttpHdrCc *HttpHeader::getCc() const STUB_RETVAL(nullptr)
73HttpHdrRange *HttpHeader::getRange() const STUB_RETVAL(nullptr)
74HttpHdrSc *HttpHeader::getSc() const STUB_RETVAL(nullptr)
75HttpHdrContRange *HttpHeader::getContRange() const STUB_RETVAL(nullptr)
76SBuf HttpHeader::getAuthToken(Http::HdrType, const char *) const STUB_RETVAL(SBuf())
77ETag HttpHeader::getETag(Http::HdrType) const STUB_RETVAL(ETag())
79int HttpHeader::hasListMember(Http::HdrType, const char *, const char) const STUB_RETVAL(0)
80int HttpHeader::hasByNameListMember(const char *, const char *, const char) const STUB_RETVAL(0)
81void HttpHeader::removeHopByHopEntries() STUB
82void HttpHeader::removeConnectionHeaderEntries() STUB
83bool HttpHeader::Isolate(const char **, size_t, const char **, const char **) STUB_RETVAL(false)
84bool HttpHeader::needUpdate(const HttpHeader *) const STUB_RETVAL(false)
85bool HttpHeader::skipUpdateHeader(const Http::HdrType) const STUB_RETVAL(false)
86int httpHeaderParseQuotedString(const char *, const int, String *) STUB_RETVAL(-1)
#define false
Definition: GnuRegex.c:240
char HttpHeaderMask[12]
void httpHeaderInitModule(void)
SBuf httpHeaderQuoteString(const char *raw)
quotes string using RFC 7230 quoted-string rules
Definition: HttpHeader.h:31
void httpHeaderCalcMask(HttpHeaderMask *mask, Http::HdrType http_hdr_type_enums[], size_t count)
ssize_t HttpHeaderPos
Definition: HttpHeader.h:45
int httpHeaderParseQuotedString(const char *start, const int len, String *val)
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETVAL(x)
Definition: STUB.h:41
SBuf getListMember(const String &list, const char *key, const char delimiter)
Definition: ETag.h:18
static HttpHeaderEntry * parse(const char *field_start, const char *field_end, const http_hdr_owner_type msgType)
HttpHeaderEntry(Http::HdrType id, const SBuf &name, const char *value)
HttpHeader & operator=(const HttpHeader &other)
Definition: SBuf.h:94
Definition: forward.h:15
AnyP::ProtocolVersion ProtocolVersion()
Protocol version to use in Http::Message structures wrapping FTP messages.
Definition: forward.h:22
static struct node * parse(FILE *fp)
Definition: parse.c:965






Web Site Translations