HttpStatus.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_ACLHTTPSTATUS_H
10#define SQUID_ACLHTTPSTATUS_H
11
12#include "acl/Acl.h"
13#include "acl/Checklist.h"
14#include "splay.h"
15
20 acl_httpstatus_data(int, int);
21 SBuf toStr() const; // was toStr
22
23 static int compare(acl_httpstatus_data* const& a, acl_httpstatus_data* const& b);
24};
25
27class ACLHTTPStatus : public ACL
28{
30
31public:
32 ACLHTTPStatus(char const *);
33 ~ACLHTTPStatus() override;
34
35 char const *typeString() const override;
36 void parse() override;
37 int match(ACLChecklist *checklist) override;
38 SBufList dump() const override;
39 bool empty () const override;
40 bool requiresReply() const override { return true; }
41
42protected:
44 char const *class_;
45};
46
47#endif /* SQUID_ACLHTTPSTATUS_H */
48
~ACLHTTPStatus() override
Definition: HttpStatus.cc:62
bool requiresReply() const override
whether our (i.e. shallow) match() requires checklist to have a reply
Definition: HttpStatus.h:40
void parse() override
parses node representation in squid.conf; dies on failures
Definition: HttpStatus.cc:99
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this ACL.
Definition: HttpStatus.cc:117
char const * typeString() const override
Definition: HttpStatus.cc:71
ACLHTTPStatus(char const *)
Definition: HttpStatus.cc:59
char const * class_
Definition: HttpStatus.h:44
SBufList dump() const override
Definition: HttpStatus.cc:152
Splay< acl_httpstatus_data * > * data
Definition: HttpStatus.h:43
MEMPROXY_CLASS(ACLHTTPStatus)
bool empty() const override
Definition: HttpStatus.cc:77
Definition: Acl.h:46
Definition: SBuf.h:94
std::list< SBuf > SBufList
Definition: forward.h:23
SBuf toStr() const
Definition: HttpStatus.cc:28
static int compare(acl_httpstatus_data *const &a, acl_httpstatus_data *const &b)
Definition: HttpStatus.cc:40

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors