]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/MethodData.h
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / acl / MethodData.h
CommitLineData
5dee515e 1/*
b8ae064d 2 * Copyright (C) 1996-2023 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
ff9d9458
FC
9#ifndef SQUID_SRC_ACL_METHODDATA_H
10#define SQUID_SRC_ACL_METHODDATA_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 18class ACLMethodData : public ACLData<HttpRequestMethod>
62e76326 19{
b001e822 20 MEMPROXY_CLASS(ACLMethodData);
b0dd28ba 21
741c2986 22public:
cd44274b 23 ACLMethodData() {}
337b9aa4
AR
24 ~ACLMethodData() override;
25 bool match(HttpRequestMethod) override;
26 SBufList dump() const override;
27 void parse() override;
28 bool empty() const override {return values.empty();}
62e76326 29
cd44274b 30 std::list<HttpRequestMethod> values;
5491c11e
AR
31
32 static int ThePurgeCount; ///< PURGE methods seen by parse()
b0dd28ba 33};
5dee515e 34
ff9d9458 35#endif /* SQUID_SRC_ACL_METHODDATA_H */
f53969cc 36