Documentation
¶
Overview ¶
Package etag computes deterministic HTTP entity tags for Githome responses.
GitHub serves weak validators (W/"..."), so Githome does too. An ETag is a hash over a resource's version inputs (such as a serialized body, or an updated-at plus lock-version pair), never over presentation details that vary between equal representations. The same inputs always yield the same tag, across processes and restarts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match reports whether an If-None-Match header value satisfies the given tag. It honors the comma-separated list form and the "*" wildcard, and compares weakly (ignoring the W/ marker), which is correct for GET and HEAD.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.