Documentation
¶
Overview ¶
Package header forwards to the relocated implementation at github.com/go-openapi/runtime/server-middleware/negotiate/header.
Deprecated: this package was unintentionally exposed and has moved to github.com/go-openapi/runtime/server-middleware/negotiate/header.
The shim preserves the public surface so existing imports keep compiling against v0.30.x; new code should target the new path.
Index ¶
- func Copy(header http.Header) http.Headerdeprecated
- func ParseList(header http.Header, key string) []stringdeprecated
- func ParseTime(header http.Header, key string) time.Timedeprecated
- func ParseValueAndParams(header http.Header, key string) (string, map[string]string)deprecated
- type AcceptSpecdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseValueAndParams
deprecated
ParseValueAndParams parses a comma separated list of values with optional semicolon separated name-value pairs.
Content-Type and Content-Disposition headers are in this format.
Deprecated: see package documentation.
Types ¶
type AcceptSpec
deprecated
type AcceptSpec = upstream.AcceptSpec
AcceptSpec describes an entry parsed from an Accept-style header.
Deprecated: see package documentation.
func ParseAccept
deprecated
func ParseAccept(header http.Header, key string) []AcceptSpec
ParseAccept parses Accept* headers.
Deprecated: see package documentation.
func ParseAccept2
deprecated
func ParseAccept2(header http.Header, key string) (specs []AcceptSpec)
ParseAccept2 parses Accept* headers (alternate parser).
Deprecated: see package documentation.