Documentation ¶
Index ¶
- Constants
- func DoHTTPGet(client *http.Client, url string, fnModifyRequest func(req *http.Request) error) ([]byte, int, error)
- func DoHTTPMethod(client *http.Client, req *http.Request, ...) ([]byte, int, error)
- func HTTPGet(url string, fnModifyRequest func(req *http.Request) error) ([]byte, int, error)
- type Downloader
Constants ¶
View Source
const (
InvalidStatusCode = -1
)
Variables ¶
This section is empty.
Functions ¶
func DoHTTPGet ¶ added in v0.0.12
func DoHTTPGet(client *http.Client, url string, fnModifyRequest func(req *http.Request) error) ([]byte, int, error)
DoHTTPGet makes a GET request with the given client
Types ¶
Click to show internal directories.
Click to hide internal directories.