HTTPEntityTag¶
-
class HTTPEntityTag¶
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 diagram
digraph inheritance874a4cca31 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "HTTPEntityTag" [URL="acron.core.HTTPEntityTag.html#acron.core.HTTPEntityTag",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "HTTPEntityTag" [arrowsize=0.75,style=""]; }- HTTPEntityTag.__eq__()¶
- HTTPEntityTag.__init__()¶
This constructor accepts an explicit weak flag and a literal (not quoted) tag string.
This constructor accepts a string as formatted from an HTTP server (e.g. the tag is quoted, with an optional W/ prefix.)
- HTTPEntityTag.__lt__()¶
- HTTPEntityTag.__ne__()¶
- HTTPEntityTag.assign()¶
- HTTPEntityTag.compare_to()¶
Returns a number less than zero if this
HTTPEntityTagsorts before the other one, greater than zero if it sorts after, or zero if they are equivalent.
- HTTPEntityTag.get_string()¶
Returns the entity tag formatted for sending to an HTTP server (the tag is quoted, with a conditional W prefix).
- HTTPEntityTag.get_tag()¶
Returns the tag as a literal string.
- HTTPEntityTag.is_weak()¶
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.
- HTTPEntityTag.output()¶
- HTTPEntityTag.strong_equiv()¶
Returns true if the two tags have “strong” equivalence: they are the same tag, and both are “strong”.
- HTTPEntityTag.weak_equiv()¶
Returns true if the two tags have “weak” equivalence: they are the same tag, and one or both may be “weak”.