Documentation
¶
Overview ¶
Package conditional provides pure functions for HTTP conditional request matching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchesETag ¶
MatchesETag checks if If-None-Match matches ETag (supports weak comparison). Returns true if the ETag matches one of the values in If-None-Match.
func MatchesLastModified ¶
func MatchesLastModified(ifModifiedSince string, lastModified sql.NullString) bool
MatchesLastModified checks if If-Modified-Since matches Last-Modified. Returns true if Last-Modified <= If-Modified-Since (not modified).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.