]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/HttpHdrScTarget.cc
2 * Copyright (C) 1996-2014 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 90 HTTP Cache Control Header */
12 #include "HttpHdrSc.h"
15 http_hdr_sc_type
&operator++ (http_hdr_sc_type
&aHeader
);
16 /* copies non-extant fields from new_sc to this sc */
18 HttpHdrScTarget::mergeWith(const HttpHdrScTarget
* new_sc
)
21 /* Don't touch the target - this is used to get the operations for a
25 if (new_sc
->hasNoStore())
28 if (new_sc
->hasNoStoreRemote())
31 if (new_sc
->hasMaxAge() && !hasMaxAge()) {
32 maxAge(new_sc
->maxAge());
33 maxStale(new_sc
->maxStale());
36 if (new_sc
->hasContent() && !hasContent())
37 Content(new_sc
->content());
42 HttpHdrScTarget::updateStats(StatHist
* hist
) const
46 for (c
= SC_NO_STORE
; c
< SC_ENUM_END
; ++c
)