]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors |
5dee515e | 3 | * |
bbc27441 AJ |
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. | |
5dee515e | 7 | */ |
8 | ||
b0dd28ba | 9 | #ifndef SQUID_ACLMETHODDATA_H |
10 | #define SQUID_ACLMETHODDATA_H | |
63be0a78 | 11 | |
3ad63615 AR |
12 | #include "acl/Acl.h" |
13 | #include "acl/Data.h" | |
f35c0145 | 14 | #include "http/RequestMethod.h" |
5dee515e | 15 | |
cd44274b AJ |
16 | #include <list> |
17 | ||
60745f24 | 18 | class ACLMethodData : public ACLData<HttpRequestMethod> |
62e76326 | 19 | { |
b001e822 | 20 | MEMPROXY_CLASS(ACLMethodData); |
b0dd28ba | 21 | |
741c2986 | 22 | public: |
cd44274b | 23 | ACLMethodData() {} |
b0dd28ba | 24 | ACLMethodData(ACLMethodData const &); |
25 | ACLMethodData &operator= (ACLMethodData const &); | |
26 | virtual ~ACLMethodData(); | |
60745f24 | 27 | bool match(HttpRequestMethod); |
2cb8d372 | 28 | virtual SBufList dump() const; |
b0dd28ba | 29 | void parse(); |
cd44274b | 30 | bool empty() const {return values.empty();} |
60745f24 | 31 | virtual ACLData<HttpRequestMethod> *clone() const; |
62e76326 | 32 | |
cd44274b | 33 | std::list<HttpRequestMethod> values; |
5491c11e AR |
34 | |
35 | static int ThePurgeCount; ///< PURGE methods seen by parse() | |
b0dd28ba | 36 | }; |
5dee515e | 37 | |
b0dd28ba | 38 | #endif /* SQUID_ACLMETHODDATA_H */ |
f53969cc | 39 |