util

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyKey = fmt.Errorf("missing header key")
View Source
var ErrHeaderFormat = fmt.Errorf("header line wrong format: expect [key: value]")

Functions

func DecodeHTTPConfigHeaders

func DecodeHTTPConfigHeaders(headers []string) (configHTTPHeaders http.Header, err error)

func DecodeHeader

func DecodeHeader(h string) (key, value string, err error)

func EnrichRequestWithHeaders

func EnrichRequestWithHeaders(req *http.Request, headers http.Header)

Types

This section is empty.

Jump to

Keyboard shortcuts

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