# HTTPEntityTag

from pandac.PandaModules import HTTPEntityTag

Class : HTTPEntityTag
Description : A container for an "entity tag" from an HTTP server. This is used to identify a particular version of a document or resource, particularly useful for verifying caches.

## Inheritance:

HTTPEntityTag:

## Methods of HTTPEntityTag:

compareTo
getString
getTag
isWeak
operator !=
operator <
operator =
operator ==
output
strongEquiv
weakEquiv

compareTo int HTTPEntityTag::compare_to(HTTPEntityTag const &other) const; Description: Returns a number less than zero if this HTTPEntityTag sorts before the other one, greater than zero if it sorts after, or zero if they are equivalent.

getString string HTTPEntityTag::get_string(void) const; Description: Returns the entity tag formatted for sending to an HTTP server (the tag is quoted, with a conditional W/ prefix).

getTag string const &HTTPEntityTag::get_tag(void) const; Description: Returns the tag as a literal string.

isWeak bool HTTPEntityTag::is_weak(void) const; Description: Returns true if the entity tag is marked as "weak". A consistent weak entity tag does not guarantee that its resource has not changed in any way, but it does promise that the resource has not changed in any semantically meaningful way.

operator != bool HTTPEntityTag::operator !=(HTTPEntityTag const &other) const; Description:

operator < bool HTTPEntityTag::operator <(HTTPEntityTag const &other) const; Description:

operator = void HTTPEntityTag::operator =(HTTPEntityTag const &copy); Description:

operator == bool HTTPEntityTag::operator ==(HTTPEntityTag const &other) const; Description: The == operator tests object equivalence; see also strong_equiv() and weak_equiv() for the two kinds of HTTP equivalence.

output void HTTPEntityTag::output(ostream &out) const; Description:

strongEquiv bool HTTPEntityTag::strong_equiv(HTTPEntityTag const &other) const; Description: Returns true if the two tags have "strong" equivalence: they are the same tag, and both are "strong".

weakEquiv bool HTTPEntityTag::weak_equiv(HTTPEntityTag const &other) const; Description: Returns true if the two tags have "weak" equivalence: they are the same tag, and one or both may be "weak".