import "golang.org/x/net/context/ctxhttp"
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
Do sends an HTTP request with the provided http.Client and returns an HTTP response. If the client is nil, http.DefaultClient is used. If the context 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.
func Post(ctx context.Context, client *http.Client, url string, bodyType string, body io.Reader) (*http.Response, error)
Post issues a POST request via the Do function.
func PostForm(ctx context.Context, client *http.Client, url string, data url.Values) (*http.Response, error)
PostForm issues a POST request via the Do function.
Package ctxhttp imports 5 packages (graph) and is imported by 229 packages. Updated 6 days ago. Refresh now. Tools for package owners.