Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseResponse ¶ added in v1.5.0
CloseResponse closes the response's body. But reads at least some of the body so if it's small the underlying TCP connection will be re-used. No need to check for errors: if it fails, the Transport won't reuse it anyway.
func RetriableStatus ¶ added in v1.2.0
RetriableStatus returns true if the HTTP status code should be retried.
We consider retriable status code: * 5xx - all server errors * 408 - request timeout * 429 - too many requests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.