]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/MethodData.cc
19db2a68fd0a2dbc08e9188da48225692ea94651
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 28 Access Control */
12 #include "acl/Checklist.h"
13 #include "acl/MethodData.h"
14 #include "ConfigParser.h"
15 #include "http/RequestMethod.h"
17 int ACLMethodData::ThePurgeCount
= 0;
19 ACLMethodData::~ACLMethodData()
25 ACLMethodData::match(HttpRequestMethod toFind
)
27 for (auto i
= values
.begin(); i
!= values
.end(); ++i
) {
29 // tune the list for LRU ordering
31 values
.push_front(toFind
);
39 ACLMethodData::dump() const
42 for (std::list
<HttpRequestMethod
>::const_iterator i
= values
.begin(); i
!= values
.end(); ++i
) {
43 sl
.push_back((*i
).image());
50 ACLMethodData::parse()
52 while (char *t
= ConfigParser::strtokFile()) {
54 m
.HttpRequestMethodXXX(t
);
56 if (values
.back() == Http::METHOD_PURGE
)
57 ++ThePurgeCount
; // configuration code wants to know