Registry / utility / http2curl-v2

http2curl-v2

JSON →
library2.3.0gogounverified

Package http2curl converts HTTP requests to cURL command lines.

go get moul.io/http2curl/v2
INSTALL
IMPORT
SIG · HTTP2CURL-V2
H
http2curl-v2
utilitygov2.3.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/v2

Convert an HTTP request to a cURL command

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

No known issues recorded.

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

No dependency data recorded yet.

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