Registry / networking / lestrrat-go-httpcc

lestrrat-go-httpcc

JSON →
library1.0.1gogounverified

A Go library for parsing and handling HTTP Cache-Control headers.

go get github.com/lestrrat-go/httpcc
INSTALL
IMPORT
SIG · LESTRRAT-GO-HTTPCC
L
lestrrat-go-httpcc
networkinggov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpcc
github.com/lestrrat-go/httpcc

Parses a Cache-Control header string into its directives.

package main import ( "fmt" "github.com/lestrrat-go/httpcc" ) func main() { directives, _ := httpcc.Parse("public, max-age=3600") fmt.Println(directives) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
lestrrat-go-httpcc — go get lestrrat-go-httpcc · libregistry