etag

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderKey = "etag"

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	ETag string

	// Weak is false if the ETag supports strong validation. A strongly validating ETag match indicates that the content of the two resource representations is byte-for-byte identical.
	Weak bool
}

Header represents an HTTP entity tag (ETag) https://datatracker.ietf.org/doc/html/rfc7232#section-2.3

func Parse

func Parse(header string) (*Header, error)

func (*Header) String

func (h *Header) String() string

Jump to

Keyboard shortcuts

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