]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/HttpHeaderData.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / HttpHeaderData.h
1 /*
2 * Copyright (C) 1996-2014 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 "SquidString.h"
15
16 class ACLHTTPHeaderData : public ACLData<HttpHeader*>
17 {
18 MEMPROXY_CLASS(ACLHTTPHeaderData);
19
20 public:
21 ACLHTTPHeaderData();
22 virtual ~ACLHTTPHeaderData();
23 virtual bool match(HttpHeader* hdr);
24 virtual SBufList dump() const;
25 virtual void parse();
26 virtual bool empty() const;
27 virtual ACLData<HttpHeader*> *clone() const;
28
29 private:
30 http_hdr_type hdrId; /**< set if header is known */
31 String hdrName; /**< always set */
32 ACLData<char const *> * regex_rule;
33 };
34
35 #endif /* SQUID_ACLHTTPHEADERDATA_H */
36