conditional

package
v0.1.149 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 3 Imported by: 0

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

func MatchesETag(ifNoneMatch, etag string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL