]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/HttpReqHeader.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / acl / HttpReqHeader.h
CommitLineData
00634927 1/*
bbc27441 2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
00634927 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.
00634927 7 */
8
7df0bfd7 9#ifndef SQUID_ACLHTTPREQHEADER_H
10#define SQUID_ACLHTTPREQHEADER_H
63be0a78 11
127dce76 12#include "acl/Strategised.h"
602d9612 13#include "acl/Strategy.h"
00634927 14#include "HttpHeader.h"
15
63be0a78 16/// \ingroup ACLAPI
00634927 17class ACLHTTPReqHeaderStrategy : public ACLStrategy<HttpHeader*>
18{
19
20public:
33810b1d 21 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
00634927 22 virtual bool requiresRequest() const { return true; }
23
24 static ACLHTTPReqHeaderStrategy *Instance();
25 /* Not implemented to prevent copies of the instance. */
26 /* Not private to prevent brain dead g+++ warnings about
27 * private constructors with no friends */
28 ACLHTTPReqHeaderStrategy(ACLHTTPReqHeaderStrategy const &);
29
30private:
31 static ACLHTTPReqHeaderStrategy Instance_;
32 ACLHTTPReqHeaderStrategy() { }
33
34 ACLHTTPReqHeaderStrategy&operator = (ACLHTTPReqHeaderStrategy const &);
35};
36
63be0a78 37/// \ingroup ACLAPI
00634927 38class ACLHTTPReqHeader
39{
40
41private:
42 static ACL::Prototype RegistryProtoype;
43 static ACLStrategised<HttpHeader*> RegistryEntry_;
44};
45
7df0bfd7 46#endif /* SQUID_ACLHTTPREQHEADER_H */