Registry / utility / moul-http2curl

moul-http2curl

JSON →
library1.0.0gogounverified

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

go get github.com/moul/http2curl
INSTALL
IMPORT
SIG · MOUL-HTTP2CURL
M
moul-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
github.com/moul/http2curl

Converts an HTTP request to a cURL command string.

package main import ( "fmt" "net/http" "github.com/moul/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
4 hits · last 30 days
node
4
Resources
moul-http2curl — go get moul-http2curl · libregistry