HttpStatus.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
27 class ACLHTTPStatus : public ACL
28 {
30 
31 public:
32  ACLHTTPStatus(char const *);
36 
37  virtual ACL *clone()const;
38  virtual char const *typeString() const;
39  virtual void parse();
40  virtual int match(ACLChecklist *checklist);
41  virtual SBufList dump() const;
42  virtual bool empty () const;
43  virtual bool requiresReply() const { return true; }
44 
45 protected:
47  char const *class_;
48 };
49 
50 #endif /* SQUID_ACLHTTPSTATUS_H */
51 
Definition: SBuf.h:87
Definition: Acl.h:39
Splay< acl_httpstatus_data * > * data
Definition: HttpStatus.h:46
virtual void parse()
parses node represenation in squid.conf; dies on failures
Definition: HttpStatus.cc:111
virtual int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: HttpStatus.cc:129
char const * class_
Definition: HttpStatus.h:47
virtual SBufList dump() const
Definition: HttpStatus.cc:164
SBuf toStr() const
Definition: HttpStatus.cc:28
std::list< SBuf > SBufList
Definition: forward.h:26
virtual bool empty() const
Definition: HttpStatus.cc:89
virtual bool requiresReply() const
whether our (i.e. shallow) match() requires checklist to have a reply
Definition: HttpStatus.h:43
MEMPROXY_CLASS(ACLHTTPStatus)
static int compare(acl_httpstatus_data *const &a, acl_httpstatus_data *const &b)
Definition: HttpStatus.cc:40
int a
Definition: membanger.c:50
ACLHTTPStatus(char const *)
Definition: HttpStatus.cc:65
ACLHTTPStatus & operator=(ACLHTTPStatus const &)
virtual ACL * clone() const
Definition: HttpStatus.cc:60
virtual char const * typeString() const
Definition: HttpStatus.cc:83

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors