/* * Copyright (C) 1996-2017 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ #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 */ int etagParseInit(ETag * etag, const char *str); /// whether etags are strong-equal bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2); /// whether etags are weak-equal bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2); #endif /* _SQUIDETAG_H */