# Functions
BodyBytes returns the body of the http response as a byte slice.
BodyString returns the body of the http response as a string.
Client returns a new http.Client with the given options, the result http.Client is used for fast-consuming requests.
No description provided by the author
Close closes the http response body without error.
DefaultRetry is the default retry condition, inspired by https://github.com/hashicorp/go-retryablehttp/blob/40b0cad1633fd521cee5884724fcf03d039aaf3f/client.go#L68-L86.
No description provided by the author
Do is a helper function to execute the given http request with the given http client, and execute the given function with the http response.
Error is similar to http.Error, but it can get the error message by the given code.
NewConnectRequest returns a new http.MethodConnect request, which is saving your life from http.NewRequest.
NewConnectRequestWithContext returns a new http.MethodConnect request with the given context, which is saving your life from http.NewRequestWithContext.
NewDeleteRequest returns a new http.MethodDelete request, which is saving your life from http.NewRequest.
NewDeleteRequestWithContext returns a new http.MethodDelete request with the given context, which is saving your life from http.NewRequestWithContext.
NewGetRequest returns a new http.MethodGet request, which is saving your life from http.NewRequest.
NewGetRequestWithContext returns a new http.MethodGet request, which is saving your life from http.NewRequestWithContext.
NewHeadRequest returns a new http.MethodHead request, which is saving your life from http.NewRequest.
NewHeadRequestWithContext returns a new http.MethodHead request, which is saving your life from http.NewRequestWithContext.
NewOptionsRequest returns a new http.MethodOptions request, which is saving your life from http.NewRequest.
NewOptionsRequestWithContext returns a new http.MethodOptions request with the given context, which is saving your life from http.NewRequestWithContext.
NewPatchRequest returns a new http.MethodPatch request, which is saving your life from http.NewRequest.
NewPatchRequestWithContext returns a new http.MethodPatch request with the given context, which is saving your life from http.NewRequestWithContext.
NewPostRequest returns a new http.MethodPost request, which is saving your life from http.NewRequest.
NewPostRequestWithContext returns a new http.MethodPost request with the given context, which is saving your life from http.NewRequestWithContext.
NewPutRequest returns a new http.MethodPut request, which is saving your life from http.NewRequest.
NewPutRequestWithContext returns a new http.MethodPut request with the given context, which is saving your life from http.NewRequestWithContext.
NewTraceRequest returns a new http.MethodTrace request, which is saving your life from http.NewRequest.
NewTraceRequestWithContext returns a new http.MethodTrace request with the given context, which is saving your life from http.NewRequestWithContext.
OpenSeekerFile tries the GET http.Request as a SeekerFile, and returns a SeekerFile, or an error if any.
ProxyFromEnvironment is similar to http.ProxyFromEnvironment, but it also respects the NO_PROXY environment variable.
No description provided by the author
Transport returns a new http.Transport with the given options, the result http.Transport is used for constructing http.Client.
No description provided by the author
# Variables
DefaultClient is similar to the default http.Client used by the package.
DefaultInsecureClient is the default http.Client used by the package, with TLS insecure skip verify.
DefaultInsecureTransport is the default http.DefaultTransport used by the package, with TLS insecure skip verify.
DefaultResolver is the default DNS resolver used by the package, which caches DNS lookups in memory.
DefaultTransport is similar to the default http.DefaultTransport used by the package.
# Structs
No description provided by the author
JSONFormatter is copied from httpretty.JSONFormatter, but use our own json package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author