]>
Commit | Line | Data |
---|---|---|
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 | */ | |
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 */ | |
fafe8849 | 17 | int etagParseInit(ETag * etag, const char *str); |
81a94152 | 18 | /// whether etags are strong-equal |
fafe8849 | 19 | bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2); |
81a94152 | 20 | /// whether etags are weak-equal |
fafe8849 | 21 | bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2); |
81a94152 AJ |
22 | |
23 | #endif /* _SQUIDETAG_H */ |