package ctxhttp
Import Path
golang.org/x/net/context/ctxhttp (on go.dev)
Dependency Relation
imports 5 packages, and imported by 5 packages
Involved Source Files
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
Package-Level Functions (total 5, all are exported)
Do sends an HTTP request with the provided http.Client and returns
an HTTP response.
If the client is nil, http.DefaultClient is used.
The provided ctx must be non-nil. If it is canceled or times out,
ctx.Err() will be returned.
Get issues a GET request via the Do function.
Head issues a HEAD request via the Do function.
Post issues a POST request via the Do function.
PostForm issues a POST request via the Do function.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |