Documentation ¶
Index ¶
- Variables
- func Do(client *http.Client, req *http.Request) (*http.Response, []byte, error)
- func DoCustomOutput(client *http.Client, req *http.Request, out io.WriteSeeker) (*http.Response, []byte, error)
- func FormatCurl(cli *http.Client, req *http.Request) string
- func IncreaseTimeout(ctx context.Context, client *http.Client)
- func Prepare(ctx context.Context, method, url string, body []byte) (*http.Request, error)
- func PrepareCustom(ctx context.Context, method, url string, getBody func() (io.ReadCloser, error)) (*http.Request, error)
- type StatusAccepter
Constants ¶
This section is empty.
Variables ¶
View Source
var Apple = &http.Client{ Transport: appleTLSTransport, Timeout: 1 * time.Minute, }
View Source
var MaxRetries = 50
View Source
var Media = &http.Client{ Timeout: 5 * time.Minute, Transport: normalTransport, }
View Source
var Normal = &http.Client{ Timeout: 1 * time.Minute, Transport: normalTransport, }
View Source
var Slow = &http.Client{ Timeout: 2 * time.Minute, Transport: slowTransport, }
Functions ¶
func DoCustomOutput ¶
Types ¶
type StatusAccepter ¶
Click to show internal directories.
Click to hide internal directories.