]> git.ipfire.org Git - thirdparty/squid.git/blame - src/RequestFlags.cc
Bug 5428: Warn if pkg-config is not found (#1902)
[thirdparty/squid.git] / src / RequestFlags.cc
CommitLineData
f206b652 1/*
b8ae064d 2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
f206b652 3 *
bbc27441
AJ
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.
f206b652
FC
7 */
8
bbc27441
AJ
9/* DEBUG: section 73 HTTP Request */
10
f206b652 11#include "squid.h"
aeeff7fd 12#include "debug/Stream.h"
f206b652
FC
13#include "RequestFlags.h"
14
aeeff7fd
AR
15#include <iostream>
16
450fe1cb
FC
17// When adding new flags, please update cloneAdaptationImmune() as needed.
18// returns a partial copy of the flags that includes only those flags
19// that are safe for a related (e.g., ICAP-adapted) request to inherit
f206b652
FC
20RequestFlags
21RequestFlags::cloneAdaptationImmune() const
22{
23 // At the time of writing, all flags where either safe to copy after
24 // adaptation or were not set at the time of the adaptation. If there
25 // are flags that are different, they should be cleared in the clone.
26 return *this;
27}
f53969cc 28
aeeff7fd
AR
29void
30RequestFlags::disableCacheUse(const char * const reason)
31{
32 debugs(16, 3, "for " << reason);
33 cachable.veto();
34 noCache = true; // may already be true
35}
36