ETag.cc File Reference
#include "squid.h"
#include "ETag.h"
#include <cstring>
Include dependency graph for ETag.cc:

Go to the source code of this file.

Functions

static bool etagStringsMatch (const ETag &tag1, const ETag &tag2)
 whether etag strings match More...
 
int etagParseInit (ETag *etag, const char *str)
 
bool etagIsStrongEqual (const ETag &tag1, const ETag &tag2)
 whether etags are strong-equal More...
 
bool etagIsWeakEqual (const ETag &tag1, const ETag &tag2)
 whether etags are weak-equal More...
 

Function Documentation

◆ etagIsStrongEqual()

bool etagIsStrongEqual ( const ETag tag1,
const ETag tag2 
)

Definition at line 49 of file ETag.cc.

References etagStringsMatch(), and ETag::weak.

Referenced by clientIfRangeMatch(), and StoreEntry::hasOneOfEtags().

◆ etagIsWeakEqual()

bool etagIsWeakEqual ( const ETag tag1,
const ETag tag2 
)

Definition at line 55 of file ETag.cc.

References etagStringsMatch().

Referenced by StoreEntry::hasOneOfEtags().

◆ etagParseInit()

int etagParseInit ( ETag etag,
const char *  str 
)

Definition at line 29 of file ETag.cc.

References assert, ETag::str, and ETag::weak.

Referenced by HttpHeader::getETag(), HttpHeader::getTimeOrTag(), and StoreEntry::hasOneOfEtags().

◆ etagStringsMatch()

static bool etagStringsMatch ( const ETag tag1,
const ETag tag2 
)
static

Definition at line 21 of file ETag.cc.

References ETag::str.

Referenced by etagIsStrongEqual(), and etagIsWeakEqual().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors