ETag.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_SRC_ETAG_H
10 #define SQUID_SRC_ETAG_H
11 
17 class ETag
18 {
19 public:
20  const char *str;
21  int weak;
22 };
23 
24 /* ETag */
25 int etagParseInit(ETag * etag, const char *str);
27 bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2);
29 bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2);
30 
31 #endif /* SQUID_SRC_ETAG_H */
32 
Definition: ETag.h:17
const char * str
quoted-string
Definition: ETag.h:20
bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2)
whether etags are weak-equal
Definition: ETag.cc:55
int weak
true if it is a weak validator
Definition: ETag.h:21
int etagParseInit(ETag *etag, const char *str)
Definition: ETag.cc:29
bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2)
whether etags are strong-equal
Definition: ETag.cc:49

 

Introduction

Documentation

Support

Miscellaneous