Squid Web Cache
master
Loading...
Searching...
No Matches
HttpHeaderData.h
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
#ifndef SQUID_SRC_ACL_HTTPHEADERDATA_H
10
#define SQUID_SRC_ACL_HTTPHEADERDATA_H
11
12
#include "
acl/Data.h
"
13
#include "
HttpHeader.h
"
14
#include "
sbuf/SBuf.h
"
15
#include "
SquidString.h
"
16
17
class
ACLHTTPHeaderData
:
public
ACLData
<const HttpHeader &>
18
{
19
MEMPROXY_CLASS
(
ACLHTTPHeaderData
);
20
21
public
:
22
ACLHTTPHeaderData
();
23
~ACLHTTPHeaderData
()
override
;
24
bool
match
(
const
HttpHeader
&)
override
;
25
SBufList
dump
()
const override
;
26
void
parse
()
override
;
27
bool
empty
()
const override
;
28
29
private
:
30
/* ACLData API */
31
const
Acl::Options
&
lineOptions
()
override
;
32
33
Http::HdrType
hdrId
;
34
SBuf
hdrName
;
35
ACLData<char const *>
*
regex_rule
;
36
};
37
38
#endif
/* SQUID_SRC_ACL_HTTPHEADERDATA_H */
39
Data.h
HttpHeader.h
SBuf.h
SquidString.h
ACLData
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition
Data.h:18
ACLHTTPHeaderData
Definition
HttpHeaderData.h:18
ACLHTTPHeaderData::~ACLHTTPHeaderData
~ACLHTTPHeaderData() override
Definition
HttpHeaderData.cc:32
ACLHTTPHeaderData::dump
SBufList dump() const override
Definition
HttpHeaderData.cc:57
ACLHTTPHeaderData::regex_rule
ACLData< char const * > * regex_rule
Definition
HttpHeaderData.h:35
ACLHTTPHeaderData::hdrId
Http::HdrType hdrId
Definition
HttpHeaderData.h:33
ACLHTTPHeaderData::hdrName
SBuf hdrName
Definition
HttpHeaderData.h:34
ACLHTTPHeaderData::parse
void parse() override
Definition
HttpHeaderData.cc:72
ACLHTTPHeaderData::empty
bool empty() const override
Definition
HttpHeaderData.cc:80
ACLHTTPHeaderData::lineOptions
const Acl::Options & lineOptions() override
supported ACL "line" options (e.g., "-i")
Definition
HttpHeaderData.cc:66
ACLHTTPHeaderData::MEMPROXY_CLASS
MEMPROXY_CLASS(ACLHTTPHeaderData)
ACLHTTPHeaderData::ACLHTTPHeaderData
ACLHTTPHeaderData()
Definition
HttpHeaderData.cc:29
ACLHTTPHeaderData::match
bool match(const HttpHeader &) override
Definition
HttpHeaderData.cc:38
HttpHeader
Definition
HttpHeader.h:75
SBuf
Definition
SBuf.h:94
Acl::Options
std::vector< const Option * > Options
Definition
Options.h:217
Http::HdrType
HdrType
Definition
RegisteredHeaders.h:21
SBufList
std::list< SBuf > SBufList
Definition
forward.h:23
squid
src
acl
HttpHeaderData.h
Generated by
1.9.8