]> git.ipfire.org Git - thirdparty/squid.git/blob - src/HttpHdrScTarget.h
Cleanup: zap CVS Id tags
[thirdparty/squid.git] / src / HttpHdrScTarget.h
1 /*
2 * $Id$
3 *
4 *
5 * SQUID Web Proxy Cache http://www.squid-cache.org/
6 * ----------------------------------------------------------
7 *
8 * Squid is the result of efforts by numerous individuals from
9 * the Internet community; see the CONTRIBUTORS file for full
10 * details. Many organizations have provided support for Squid's
11 * development; see the SPONSORS file for full details. Squid is
12 * Copyrighted (C) 2001 by the Regents of the University of
13 * California; see the COPYRIGHT file for full details. Squid
14 * incorporates software developed and/or copyrighted by other
15 * sources; see the CREDITS file for full details.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
30 *
31 */
32 #ifndef SQUID_HTTPHDRSURROGATECONTROLTARGET_H
33 #define SQUID_HTTPHDRSURROGATECONTROLTARGET_H
34
35 class Packer;
36 class StoreEntry;
37
38 /* for MEMPROXY_CLASS() macros */
39 #include "MemPool.h"
40 /* for dlink_node */
41 #include "dlink.h"
42 /* for String */
43 #include "SquidString.h"
44
45 /** HTTP Surogate-Control: header field */
46 class HttpHdrScTarget
47 {
48 public:
49 MEMPROXY_CLASS(HttpHdrScTarget);
50 dlink_node node;
51 int mask;
52 int max_age;
53 int max_stale;
54 String content;
55 String target;
56 };
57
58 MEMPROXY_CLASS_INLINE(HttpHdrScTarget);
59
60 /* Http Surrogate control header field 'targets' */
61 extern HttpHdrScTarget * httpHdrScTargetCreate (const char *);
62 extern void httpHdrScTargetDestroy(HttpHdrScTarget *);
63 extern HttpHdrScTarget *httpHdrScTargetDup(const HttpHdrScTarget *);
64 extern void httpHdrScTargetPackInto(const HttpHdrScTarget *, Packer *);
65 extern void httpHdrScTargetSetMaxAge(HttpHdrScTarget *, int);
66 extern void httpHdrScTargetJoinWith(HttpHdrScTarget *, const HttpHdrScTarget *);
67 extern void httpHdrScTargetMergeWith(HttpHdrScTarget *, const HttpHdrScTarget *);
68 extern void httpHdrScTargetStatDumper(StoreEntry * sentry, int idx, double val, double size, int count);
69
70 /* for StatHist */
71 #include "typedefs.h"
72
73 extern void httpHdrScTargetUpdateStats(const HttpHdrScTarget *, StatHist *);
74
75
76 #endif /* SQUID_HTTPHDRSURROGATECONTROLTARGET_H */