]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/HttpRepHeader.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / HttpRepHeader.h
CommitLineData
00634927 1/*
bde978a6 2 * Copyright (C) 1996-2015 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_ACLHTTPREPHEADER_H
10#define SQUID_ACLHTTPREPHEADER_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 ACLHTTPRepHeaderStrategy : public ACLStrategy<HttpHeader*>
18{
19
20public:
33810b1d 21 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
00634927 22 virtual bool requiresReply() const { return true; }
23
24 static ACLHTTPRepHeaderStrategy *Instance();
63be0a78 25 /**
26 * Not implemented to prevent copies of the instance.
27 \par
28 * Not private to prevent brain dead g+++ warnings about
29 * private constructors with no friends
30 */
00634927 31 ACLHTTPRepHeaderStrategy(ACLHTTPRepHeaderStrategy const &);
32
33private:
34 static ACLHTTPRepHeaderStrategy Instance_;
35 ACLHTTPRepHeaderStrategy() { }
36
37 ACLHTTPRepHeaderStrategy&operator = (ACLHTTPRepHeaderStrategy const &);
38};
39
63be0a78 40/// \ingroup ACLAPI
00634927 41class ACLHTTPRepHeader
42{
43
44private:
45 static ACL::Prototype RegistryProtoype;
46 static ACLStrategised<HttpHeader*> RegistryEntry_;
47};
48
7df0bfd7 49#endif /* SQUID_ACLHTTPREPHEADER_H */
f53969cc 50