Registry / http-client / carlmjohnson-requests

carlmjohnson-requests

JSON →
library0.25.1gogounverified

A convenience wrapper around net/http to make it faster and easier to build requests and custom transports.

go get github.com/carlmjohnson/requests
INSTALL
IMPORT
SIG · CARLMJOHNSON-REQUE
C
carlmjohnson-requests
http-clientgov0.25.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.

requests
github.com/carlmjohnson/requests

Make a GET request and get the response as a string.

package main import ( "fmt" "github.com/carlmjohnson/requests" ) func main() { var result string err := requests.URL("https://api.example.com").ToString(&result).Fetch() if err != nil { fmt.Println(err) } else { fmt.Println(result) } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
32
OpenAI (training)
1
Resources
carlmjohnson-requests — go get carlmjohnson-requests · libregistry