ClientRequestContext.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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_CLIENTREQUESTCONTEXT_H
10#define SQUID_CLIENTREQUESTCONTEXT_H
11
12#include "base/RefCount.h"
13#include "cbdata.h"
14#include "dns/forward.h"
15#include "helper/forward.h"
16#include "ipcache.h"
17
18#if USE_ADAPTATION
19#include "adaptation/forward.h"
20#endif
21
22class ACLChecklist;
24class ErrorState;
25
27{
29
30public:
33
34 bool httpStateIsValid();
35 void hostHeaderVerify();
37 void hostHeaderVerifyFailed(const char *A, const char *B);
38 void clientAccessCheck();
39 void clientAccessCheck2();
43 void clientStoreIdStart();
44 void clientStoreIdDone(const Helper::Reply &);
45 void checkNoCache();
46 void checkNoCacheDone(const Acl::Answer &);
47#if USE_ADAPTATION
49#endif
50#if USE_OPENSSL
57 bool sslBumpAccessCheck();
59 void sslBumpAccessCheckDone(const Acl::Answer &answer);
60#endif
61
66
68 bool http_access_done = false;
70#if USE_ADAPTATION
72#endif
73 bool redirect_done = false;
74 bool store_id_done = false;
75 bool no_cache_done = false;
77 bool toClientMarkingDone = false;
78#if USE_OPENSSL
79 bool sslBumpCheckDone = false;
80#endif
81 ErrorState *error = nullptr;
82 bool readNextRequest = false;
83};
84
85#endif /* SQUID_CLIENTREQUESTCONTEXT_H */
86
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
#define CBDATA_CLASS(type)
Definition: cbdata.h:302
void clientAccessCheckDone(const Acl::Answer &)
void clientStoreIdDone(const Helper::Reply &)
void clientRedirectDone(const Helper::Reply &)
void sslBumpAccessCheckDone(const Acl::Answer &answer)
The callback function for ssl-bump access check list.
ClientRequestContext(ClientHttpRequest *)
bool readNextRequest
whether Squid should read after error handling
ClientHttpRequest * http
ACLChecklist * acl_checklist
need ptr back so we can unregister if needed
ErrorState * error
saved error page for centralized/delayed processing
void hostHeaderVerifyFailed(const char *A, const char *B)
void hostHeaderIpVerify(const ipcache_addrs *, const Dns::LookupDetails &)
void checkNoCacheDone(const Acl::Answer &)
encapsulates DNS lookup results
Definition: LookupDetails.h:21
#define REDIRECT_NONE
Definition: defines.h:55
static uint32 A
Definition: md4.c:43
static uint32 B
Definition: md4.c:43

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors