Registry / networking / sebest-xff

sebest-xff

JSON →
library0.0.0-20210106013422-671bd2870b3agogounverified

A Go HTTP middleware for parsing and handling the X-Forwarded-For header.

go get github.com/sebest/xff
INSTALL
IMPORT
SIG · SEBEST-XFF
S
sebest-xff
networkinggov0.0.0-20210106013422-671bd2870b3a
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.

xff
github.com/sebest/xff

Wrap an HTTP handler with X-Forwarded-For support.

package main import ( "net/http" "github.com/sebest/xff" ) func main() { handler := xff.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello")) })) http.ListenAndServe(":8080", handler) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210106013422-671bd2870b3alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
sebest-xff — go get sebest-xff · libregistry