]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2017 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_ACLHTTPHEADERDATA_H | |
10 | #define SQUID_ACLHTTPHEADERDATA_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<HttpHeader*> | |
18 | { | |
19 | MEMPROXY_CLASS(ACLHTTPHeaderData); | |
20 | ||
21 | public: | |
22 | ACLHTTPHeaderData(); | |
23 | virtual ~ACLHTTPHeaderData(); | |
24 | virtual bool match(HttpHeader* hdr); | |
25 | virtual SBufList dump() const; | |
26 | virtual void parse(); | |
27 | virtual bool empty() const; | |
28 | virtual ACLData<HttpHeader*> *clone() const; | |
29 | ||
30 | private: | |
31 | Http::HdrType hdrId; /**< set if header is known */ | |
32 | SBuf hdrName; /**< always set */ | |
33 | ACLData<char const *> * regex_rule; | |
34 | }; | |
35 | ||
36 | #endif /* SQUID_ACLHTTPHEADERDATA_H */ | |
37 |