Help us shape the future of Go! Take the 2026 Go Developer Survey

headers

package
v1.1.84 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Accept        = "Accept"
	Authorization = "Authorization"
	ContentType   = "Content-Type"
	ContentLength = "Content-Length"
)

HTTP headers

Variables

View Source
var (
	// Monoid is a [M.Monoid] to concatenate [http.Header] maps
	Monoid = RG.UnionMonoid[http.Header](A.Semigroup[string]())

	// AtValues is a [L.Lens] that focusses on the values of a header
	AtValues = F.Flow2(
		textproto.CanonicalMIMEHeaderKey,
		LRG.AtRecord[http.Header, []string],
	)

	// AtValue is a [L.Lens] that focusses on first value of a header
	AtValue = F.Flow2(
		AtValues,
		composeHead,
	)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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