ServerName.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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#ifndef SQUID_ACLSERVERNAME_H
10#define SQUID_ACLSERVERNAME_H
11
12#include "acl/Acl.h"
13#include "acl/DomainData.h"
14#include "acl/Strategy.h"
15
18public:
20 bool match(const char *) override;
21};
22
23class ACLServerNameStrategy : public ACLStrategy<char const *>
24{
25
26public:
27 /* ACLStrategy API */
28 int match (ACLData<MatchType> * &, ACLFilledChecklist *) override;
29 bool requiresRequest() const override {return true;}
30 const Acl::Options &options() override;
31 bool valid() const override;
32
33private:
37};
38
39#endif /* SQUID_ACLSERVERNAME_H */
40
bool match(const char *) override
Definition: ServerName.cc:37
MEMPROXY_CLASS(ACLServerNameData)
Acl::BooleanOptionValue useConsensus
Ignore mismatching names.
Definition: ServerName.h:36
Acl::BooleanOptionValue useClientRequested
Ignore server-supplied names.
Definition: ServerName.h:34
const Acl::Options & options() override
Definition: ServerName.cc:120
Acl::BooleanOptionValue useServerProvided
Ignore client-supplied names.
Definition: ServerName.h:35
int match(ACLData< MatchType > *&, ACLFilledChecklist *) override
Definition: ServerName.cc:81
bool valid() const override
Definition: ServerName.cc:133
bool requiresRequest() const override
Definition: ServerName.h:29
A matching algorithm.
Definition: Strategy.h:22
std::vector< const Option * > Options
Definition: Options.h:214
OptionValue< bool > BooleanOptionValue
Definition: Options.h:200

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors