]> git.ipfire.org Git - thirdparty/squid.git/blob - src/TimeOrTag.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / TimeOrTag.h
1 /*
2 * Copyright (C) 1996-2015 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_TIMEORTAG_H
10 #define _SQUID_TIMEORTAG_H
11
12 #include "ETag.h"
13
14 /**
15 * Some fields can hold either time or etag specs (e.g. If-Range)
16 */
17 class TimeOrTag
18 {
19 public:
20 ETag tag; /* entity tag */
21 time_t time;
22 int valid; /* true if struct is usable */
23 };
24
25 #endif /* _SQUID_TIMEORTAG_H */
26