mvphttp

package
v0.3.54 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCacheMode

func ApplyCacheMode(w http.ResponseWriter, m CacheMode)

func ApplyCacheModeToExistingHeader

func ApplyCacheModeToExistingHeader(h http.Header, m CacheMode)

func ApplyCacheModeToHeader

func ApplyCacheModeToHeader(h *http.Header, m CacheMode)

func HeaderWithCacheMode

func HeaderWithCacheMode(m CacheMode) http.Header

Types

type CacheMode

type CacheMode interface {
	EnumCacheHeaders(f func(key, value string))
}

type StandardCacheMode

type StandardCacheMode int
const (
	NoCacheHeaders StandardCacheMode = iota
	Uncached
	PrivateMutable
	PublicMutable
	PublicImmutable
)

func (StandardCacheMode) EnumCacheHeaders

func (cm StandardCacheMode) EnumCacheHeaders(f func(key, value string))

Jump to

Keyboard shortcuts

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