]>
Commit | Line | Data |
---|---|---|
48071869 | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 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 | 17 | template class ACLStrategised<HttpRequestMethod>; |
97427e90 | 18 | |
48071869 | 19 | int |
33810b1d | 20 | ACLMethodStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &) |
48071869 | 21 | { |
22 | return data->match (checklist->request->method); | |
23 | } | |
24 | ||
25 | ACLMethodStrategy * | |
26 | ACLMethodStrategy::Instance() | |
27 | { | |
28 | return &Instance_; | |
29 | } | |
30 | ||
31 | ACLMethodStrategy ACLMethodStrategy::Instance_; | |
f53969cc | 32 |