Registry / utility / http2curl

http2curl

JSON →
library1.0.0gogounverified

A Go package to convert HTTP requests to cURL command lines.

go get moul.io/http2curl
INSTALL
IMPORT
SIG · HTTP2CURL
H
http2curl
utilitygov1.0.0
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.

http2curl
moul.io/http2curl

Convert an HTTP request to a cURL command.

package main import ( "fmt" "net/http" "moul.io/http2curl" ) func main() { req, _ := http.NewRequest("GET", "http://example.com", nil) curl, _ := http2curl.GetCurlCommand(req) fmt.Println(curl) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
http2curl — go get http2curl · libregistry