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_SRC_ACL_HTTPSTATUS_H
10 #define SQUID_SRC_ACL_HTTPSTATUS_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 
25 class ACLHTTPStatus : public Acl::Node
26 {
28 
29 public:
30  ACLHTTPStatus(char const *);
31  ~ACLHTTPStatus() override;
32 
33  char const *typeString() const override;
34  void parse() override;
35  int match(ACLChecklist *checklist) override;
36  SBufList dump() const override;
37  bool empty () const override;
38  bool requiresReply() const override { return true; }
39 
40 protected:
42  char const *class_;
43 };
44 
45 #endif /* SQUID_SRC_ACL_HTTPSTATUS_H */
46 
SBuf toStr() const
Definition: HttpStatus.cc:30
const char * class_
Definition: HttpStatus.h:42
std::list< SBuf > SBufList
Definition: forward.h:22
Definition: SBuf.h:93
bool empty() const override
Definition: HttpStatus.cc:92
SBufList dump() const override
Definition: HttpStatus.cc:167
void parse() override
parses node representation in squid.conf; dies on failures
Definition: HttpStatus.cc:114
~ACLHTTPStatus() override
Definition: HttpStatus.cc:77
const char * typeString() const override
Definition: HttpStatus.cc:86
ACLHTTPStatus(char const *)
Definition: HttpStatus.cc:74
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this Acl::Node.
Definition: HttpStatus.cc:132
MEMPROXY_CLASS(ACLHTTPStatus)
Definition: Node.h:25
bool requiresReply() const override
whether our (i.e. shallow) match() requires checklist to have a reply
Definition: HttpStatus.h:38
Splay< acl_httpstatus_data * > * data
Definition: HttpStatus.h:41

 

Introduction

Documentation

Support

Miscellaneous