Registry / http-client / taskcluster-go-got

taskcluster-go-got

JSON →
library0.0.0-20190401132811-c63e3293a290gogounverified

Go-got is a simple net/http wrapper for JSON REST APIs that adds retries and request buffering for small payloads.

go get github.com/taskcluster/go-got
INSTALL
IMPORT
SIG · TASKCLUSTER-GO-GOT
T
taskcluster-go-got
http-clientgov0.0.0-20190401132811-c63e3293a290
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.

got
github.com/taskcluster/go-got

Performs a GET request with retries using go-got.

package main import ( "fmt" "github.com/taskcluster/go-got" ) func main() { resp, err := got.Get("https://api.example.com/data") if err != nil { panic(err) } fmt.Println(resp.Status) }
Debug
Known issues
gotchaPackage does not support streaming requests; all request bodies are buffered.
fix
Use a different HTTP client if streaming is required.
affects: all
Upgrade
Version history
0.0.0-20190401132811-c63e3293a290latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
taskcluster-go-got — go get taskcluster-go-got · libregistry