directives

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRequestCacheControl

func ParseRequestCacheControl(directives string, log *zap.Logger, r *Req)

Types

type Req

type Req struct {
	MaxAge   *uint64
	MaxStale *uint64
	MinFresh *uint64

	NoCache      bool
	NoStore      bool
	NoTransform  bool
	OnlyIfCached bool
}

Req represents possible Cache-Control request header values

func (*Req) Reset

func (r *Req) Reset()

Jump to

Keyboard shortcuts

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