#ifndef _SQUID_ETAG_H #define _SQUID_ETAG_H /** * ETag support is rudimantal; this struct is likely to change * Note: "str" points to memory in HttpHeaderEntry (for now) * so ETags should be used as tmp variables only (for now) */ class ETag { public: const char *str; ///< quoted-string int weak; ///< true if it is a weak validator }; /* ETag */ SQUIDCEXTERN int etagParseInit(ETag * etag, const char *str); /// whether etags are strong-equal SQUIDCEXTERN bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2); /// whether etags are weak-equal SQUIDCEXTERN bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2); #endif /* _SQUIDETAG_H */