]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/HttpStatus.h
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SRC_ACL_HTTPSTATUS_H
10 #define SQUID_SRC_ACL_HTTPSTATUS_H
13 #include "acl/Checklist.h"
17 struct acl_httpstatus_data
{
19 acl_httpstatus_data(int);
20 acl_httpstatus_data(int, int);
21 SBuf
toStr() const; // was toStr
25 class ACLHTTPStatus
: public Acl::Node
27 MEMPROXY_CLASS(ACLHTTPStatus
);
30 ACLHTTPStatus(char const *);
31 ~ACLHTTPStatus() override
;
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; }
41 Splay
<acl_httpstatus_data
*> *data
;
45 #endif /* SQUID_SRC_ACL_HTTPSTATUS_H */