]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ETag.h
Boilerplate: update copyright blurbs on Squid helpers
[thirdparty/squid.git] / src / ETag.h
CommitLineData
81a94152
AJ
1#ifndef _SQUID_ETAG_H
2#define _SQUID_ETAG_H
3
4/**
5 * ETag support is rudimantal; this struct is likely to change
6 * Note: "str" points to memory in HttpHeaderEntry (for now)
7 * so ETags should be used as tmp variables only (for now)
8 */
9class ETag
10{
11public:
12 const char *str; ///< quoted-string
13 int weak; ///< true if it is a weak validator
14};
15
16/* ETag */
fafe8849 17int etagParseInit(ETag * etag, const char *str);
81a94152 18/// whether etags are strong-equal
fafe8849 19bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2);
81a94152 20/// whether etags are weak-equal
fafe8849 21bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2);
81a94152
AJ
22
23#endif /* _SQUIDETAG_H */