package headers
import "github.com/IBM/fp-go/http/headers"
Index ¶
Constants ¶
const ( Accept = "Accept" Authorization = "Authorization" ContentType = "Content-Type" ContentLength = "Content-Length" )
HTTP headers
Variables ¶
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, ) )
Source Files ¶
- Version
- v1.0.151 (latest)
- Published
- Nov 23, 2024
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 4 months ago –
Tools for package owners.