]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/Method.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / Method.cc
CommitLineData
48071869 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
48071869 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.
48071869 7 */
8
582c2af2 9#include "squid.h"
602d9612 10#include "acl/Checklist.h"
127dce76
AR
11#include "acl/Method.h"
12#include "acl/MethodData.h"
a2ac85d9 13#include "HttpRequest.h"
48071869 14
97427e90 15/* explicit template instantiation required for some systems */
16
3d0ac046 17template class ACLStrategised<HttpRequestMethod>;
97427e90 18
48071869 19int
33810b1d 20ACLMethodStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
48071869 21{
22 return data->match (checklist->request->method);
23}
24
25ACLMethodStrategy *
26ACLMethodStrategy::Instance()
27{
28 return &Instance_;
29}
30
31ACLMethodStrategy ACLMethodStrategy::Instance_;
f53969cc 32