]> git.ipfire.org Git - thirdparty/squid.git/blob - src/RefreshPattern.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / RefreshPattern.h
1 /*
2 * Copyright (C) 1996-2014 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_REFRESHPATTERN_H_
10 #define SQUID_REFRESHPATTERN_H_
11
12 #include "compat/GnuRegex.h"
13
14 /// a representation of a refresh pattern. Currently a POD.
15 class RefreshPattern
16 {
17 public:
18 const char *pattern;
19 regex_t compiled_pattern;
20 time_t min;
21 double pct;
22 time_t max;
23 RefreshPattern *next;
24
25 struct {
26 bool icase;
27 bool refresh_ims;
28 bool store_stale;
29 #if USE_HTTP_VIOLATIONS
30 bool override_expire;
31 bool override_lastmod;
32 bool reload_into_ims;
33 bool ignore_reload;
34 bool ignore_no_store;
35 bool ignore_must_revalidate;
36 bool ignore_private;
37 bool ignore_auth;
38 #endif
39 } flags;
40 int max_stale;
41 };
42
43 #endif /* SQUID_REFRESHPATTERN_H_ */
44