request

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, req *http.Request, f func(*http.Response, error) error) error

Do issue http request and calls f with the response. if ctx.Done is called during the request handling. Do cancels the request and wait s for f quit return ctx.Err

func DoReqWithCtx

func DoReqWithCtx(req *http.Request, f func(*http.Response, error) error) error

DoReqWithCtx like Do except the ctx extract from req.Context()

func SetClient added in v0.5.4

func SetClient(nc *http.Client)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL