source: squid-ssl/trunk/fuentes/src/acl/Method.cc @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

File size: 802 bytes
Line 
1/*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9#include "squid.h"
10#include "acl/Checklist.h"
11#include "acl/Method.h"
12#include "acl/MethodData.h"
13#include "HttpRequest.h"
14
15/* explicit template instantiation required for some systems */
16
17template class ACLStrategised<HttpRequestMethod>;
18
19int
20ACLMethodStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
21{
22    return data->match (checklist->request->method);
23}
24
25ACLMethodStrategy *
26ACLMethodStrategy::Instance()
27{
28    return &Instance_;
29}
30
31ACLMethodStrategy ACLMethodStrategy::Instance_;
32
Note: See TracBrowser for help on using the repository browser.