Registry / networking / xmidt-org-httpaux

xmidt-org-httpaux

JSON →
library0.4.3gogounverified

Auxiliary HTTP utilities for Go, including middleware and helpers.

go get github.com/xmidt-org/httpaux
INSTALL
IMPORT
SIG · XMIDT-ORG-HTTPAUX
X
xmidt-org-httpaux
networkinggov0.4.3
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.

httpaux
github.com/xmidt-org/httpaux

Wraps a handler with a custom header.

package main import ( "fmt" "net/http" "github.com/xmidt-org/httpaux" ) func main() { handler := httpaux.WithHeader("X-Custom", "value")(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello") })) http.Handle("/", handler) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
xmidt-org-httpaux — go get xmidt-org-httpaux · libregistry