header

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 14

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy deprecated

func Copy(header http.Header) http.Header

Copy returns a shallow copy of the header.

Deprecated: see package documentation.

func ParseList deprecated

func ParseList(header http.Header, key string) []string

ParseList parses a comma separated list of values.

Commas are ignored in quoted strings. Quoted values are not unescaped or unquoted. Whitespace is trimmed.

Deprecated: see package documentation.

func ParseTime deprecated

func ParseTime(header http.Header, key string) time.Time

ParseTime parses the header as time.

The zero value is returned if the header is not present or there is an error parsing the header.

Deprecated: see package documentation.

func ParseValueAndParams deprecated

func ParseValueAndParams(header http.Header, key string) (string, map[string]string)

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.

Jump to

Keyboard shortcuts

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