Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2019 Changes in this version + var AnyTag = EntityTag + var Eternity = Delta + func AddForwarded(h http.Header, elems ...ForwardedElem) + func AddLink(h http.Header, links ...LinkElem) + func AddVary(h http.Header, names ...string) + func AddVia(h http.Header, elems ...ViaElem) + func AddWarning(h http.Header, elems ...WarningElem) + func Allow(h http.Header) []string + func ContentDisposition(h http.Header) (dtype, filename string, params map[string]string) + func ContentType(h http.Header) (mtype string, params map[string]string) + func DecodeExtValue(v string) (text, lang string, err error) + func EncodeExtValue(text, lang string) string + func Match(clientTags []EntityTag, serverTag EntityTag) bool + func MatchWeak(clientTags []EntityTag, serverTag EntityTag) bool + func Prefer(h http.Header) map[string]Pref + func PreferenceApplied(h http.Header) map[string]string + func RetryAfter(h http.Header) time.Time + func SetAccept(h http.Header, elems []AcceptElem) + func SetAllow(h http.Header, methods []string) + func SetAuthorization(h http.Header, credentials Auth) + func SetCacheControl(h http.Header, cc CacheDirectives) + func SetContentDisposition(h http.Header, dtype, filename string, params map[string]string) + func SetContentType(h http.Header, mtype string, params map[string]string) + func SetETag(h http.Header, tag EntityTag) + func SetForwarded(h http.Header, elems []ForwardedElem) + func SetLink(h http.Header, links []LinkElem) + func SetPrefer(h http.Header, prefs map[string]Pref) + func SetPreferenceApplied(h http.Header, prefs map[string]string) + func SetProxyAuthenticate(h http.Header, challenges []Auth) + func SetProxyAuthorization(h http.Header, credentials Auth) + func SetRetryAfter(h http.Header, after time.Time) + func SetServer(h http.Header, products []Product) + func SetUserAgent(h http.Header, products []Product) + func SetVary(h http.Header, names map[string]bool) + func SetVia(h http.Header, elems []ViaElem) + func SetWWWAuthenticate(h http.Header, challenges []Auth) + func SetWarning(h http.Header, elems []WarningElem) + func Vary(h http.Header) map[string]bool + type AcceptElem struct + Ext map[string]string + Params map[string]string + Q float32 + Type string + func Accept(h http.Header) []AcceptElem + func MatchAccept(accept []AcceptElem, mediaType string) AcceptElem + type Auth struct + Params map[string]string + Realm string + Scheme string + Token string + func Authorization(h http.Header) Auth + func ProxyAuthenticate(h http.Header) []Auth + func ProxyAuthorization(h http.Header) Auth + func WWWAuthenticate(h http.Header) []Auth + type CacheDirectives struct + Ext map[string]string + Immutable bool + MaxAge Delta + MaxStale Delta + MinFresh Delta + MustRevalidate bool + NoCache bool + NoCacheHeaders []string + NoStore bool + NoTransform bool + OnlyIfCached bool + Private bool + PrivateHeaders []string + ProxyRevalidate bool + Public bool + SMaxage Delta + StaleIfError Delta + StaleWhileRevalidate Delta + func CacheControl(h http.Header) CacheDirectives + type Delta struct + func DeltaSeconds(s int) Delta + func (d Delta) Value() (dur time.Duration, ok bool) + type EntityTag struct + Opaque string + Weak bool + func IfMatch(h http.Header) []EntityTag + func IfNoneMatch(h http.Header) []EntityTag + type ForwardedElem struct + By Node + Ext map[string]string + For Node + Host string + Proto string + func Forwarded(h http.Header) []ForwardedElem + type LinkElem struct + Anchor *url.URL + Ext map[string]string + HrefLang []string + Media string + Rel string + Target *url.URL + Title string + Type string + func Link(h http.Header, base *url.URL) []LinkElem + type Node struct + IP net.IP + ObfuscatedNode string + ObfuscatedPort string + Port int + type Pref struct + Params map[string]string + Value string + type Product struct + Comment string + Name string + Version string + func Server(h http.Header) []Product + func UserAgent(h http.Header) []Product + type ViaElem struct + Comment string + ReceivedBy string + ReceivedProto string + func Via(h http.Header) []ViaElem + type WarningElem struct + Agent string + Code int + Date time.Time + Text string + func Warning(h http.Header) []WarningElem