]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ETag.h
2 * Copyright (C) 1996-2017 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.
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)
20 const char *str
; ///< quoted-string
21 int weak
; ///< true if it is a weak validator
25 int etagParseInit(ETag
* etag
, const char *str
);
26 /// whether etags are strong-equal
27 bool etagIsStrongEqual(const ETag
&tag1
, const ETag
&tag2
);
28 /// whether etags are weak-equal
29 bool etagIsWeakEqual(const ETag
&tag1
, const ETag
&tag2
);
31 #endif /* _SQUIDETAG_H */