Registry / web-framework / httprequest-v1

httprequest-v1

JSON →
library1.2.1gogounverified

Package httprequest provides functionality for marshaling and unmarshaling HTTP request parameters into a struct type, and defining methods as HTTP routes.

go get gopkg.in/httprequest.v1
INSTALL
IMPORT
SIG · HTTPREQUEST-V1
H
httprequest-v1
web-frameworkgov1.2.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.

httprequest
gopkg.in/httprequest.v1

Demonstrates unmarshaling HTTP request parameters into a struct.

package main import ( "fmt" "gopkg.in/httprequest.v1" ) func main() { var params struct { Name string `httprequest:"name,form"` } req, _ := httprequest.NewRequest("GET", "/", nil) err := httprequest.Unmarshal(req, &params) fmt.Println(err) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
httprequest-v1 — go get httprequest-v1 · libregistry