2 * Copyright (C) 1996-2015 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 /* DEBUG: section 65 HTTP Cache Control Header */
15 HttpHdrCc::isSet(http_hdr_cc_type id) const
17 assert(id>=CC_PUBLIC && id < CC_ENUM_END);
18 return EBIT_TEST(mask,id);
22 HttpHdrCc::setMask(http_hdr_cc_type id, bool newval)
30 /// set a data member to a new value, and set the corresponding mask-bit.
31 /// if setting is false, then the mask-bit is cleared.
33 HttpHdrCc::setValue(int32_t &value, int32_t new_value, http_hdr_cc_type hdr, bool setting)
37 debugs(65,3,HERE << "rejecting negative-value Cache-Control directive " << hdr
38 << " value " << new_value );
42 new_value=-1; //rely on the convention that "unknown" is -1