]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ETag.h
merge from SslServerCertValidator r12332
[thirdparty/squid.git] / src / ETag.h
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 */
9 class ETag
10 {
11 public:
12 const char *str; ///< quoted-string
13 int weak; ///< true if it is a weak validator
14 };
15
16 /* ETag */
17 int etagParseInit(ETag * etag, const char *str);
18 /// whether etags are strong-equal
19 bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2);
20 /// whether etags are weak-equal
21 bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2);
22
23 #endif /* _SQUIDETAG_H */