Registry / utility / dimfeld-httppath

dimfeld-httppath

JSON →
library0.0.0-20170720192232-ee938bf73598gogounverified

A utility package for cleaning and joining URL paths, similar to path.Clean but for HTTP URLs.

go get github.com/dimfeld/httppath
INSTALL
IMPORT
SIG · DIMFELD-HTTPPATH
D
dimfeld-httppath
utilitygov0.0.0-20170720192232-ee938bf73598
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.

httppath
github.com/dimfeld/httppath

Cleans an HTTP path by normalizing slashes and resolving '..' segments.

package main import ( "fmt" "github.com/dimfeld/httppath" ) func main() { clean := httppath.Clean("/a//b/../c") fmt.Println(clean) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20170720192232-ee938bf73598latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
dimfeld-httppath — go get dimfeld-httppath · libregistry