]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ETag.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / ETag.h
CommitLineData
bbc27441 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
bbc27441
AJ
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
81a94152
AJ
9#ifndef _SQUID_ETAG_H
10#define _SQUID_ETAG_H
11
12/**
13 * ETag support is rudimantal; this struct is likely to change
14 * Note: "str" points to memory in HttpHeaderEntry (for now)
15 * so ETags should be used as tmp variables only (for now)
16 */
17class ETag
18{
19public:
20 const char *str; ///< quoted-string
21 int weak; ///< true if it is a weak validator
22};
23
24/* ETag */
fafe8849 25int etagParseInit(ETag * etag, const char *str);
81a94152 26/// whether etags are strong-equal
fafe8849 27bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2);
81a94152 28/// whether etags are weak-equal
fafe8849 29bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2);
81a94152
AJ
30
31#endif /* _SQUIDETAG_H */
f53969cc 32