Versions in this module Expand all Collapse all v1 v1.0.1 Mar 29, 2022 v1.0.0 Jan 1, 2021 Changes in this version + const MaxAge + const MaxStale + const MinFresh + const MustRevalidate + const NoCache + const NoStore + const NoTransform + const OnlyIfCached + const Private + const ProxyRevalidate + const Public + const SMaxAge + type RequestDirective struct + func ParseRequest(v string) (*RequestDirective, error) + func (d *RequestDirective) Extension(s string) string + func (d *RequestDirective) Extensions() map[string]string + func (d *RequestDirective) MaxAge() (uint64, bool) + func (d *RequestDirective) MaxStale() (uint64, bool) + func (d *RequestDirective) MinFresh() (uint64, bool) + func (d *RequestDirective) NoCache() bool + func (d *RequestDirective) NoStore() bool + func (d *RequestDirective) NoTransform() bool + func (d *RequestDirective) OnlyIfCached() bool + type ResponseDirective struct + func ParseResponse(v string) (*ResponseDirective, error) + func (d *ResponseDirective) Extension(s string) string + func (d *ResponseDirective) Extensions() map[string]string + func (d *ResponseDirective) MaxAge() (uint64, bool) + func (d *ResponseDirective) NoCache() []string + func (d *ResponseDirective) NoStore() bool + func (d *ResponseDirective) NoTransform() bool + func (d *ResponseDirective) Private() []string + func (d *ResponseDirective) ProxyRevalidate() bool + func (d *ResponseDirective) Public() bool + func (d *ResponseDirective) SMaxAge() (uint64, bool) + type TokenPair struct + Name string + Value string + func ParseRequestDirective(s string) (*TokenPair, error) + func ParseRequestDirectives(s string) ([]*TokenPair, error) + func ParseResponseDirective(s string) (*TokenPair, error) + func ParseResponseDirectives(s string) ([]*TokenPair, error) + type TokenValuePolicy int + const AnyTokenValue + const NoArgument + const QuotedStringOnly + const TokenOnly