# Packages
No description provided by the author
# Functions
ClientWithListOfNonRetriablePaths facilitates creating a client and setting a list of paths that should not be retried on failure.
ClientWithTimeout creates a client and sets per try/request timeout.
ClientWithTimeouts creates a client with both (per-request + total) timeout values.
ClientWithTotalTimeout creates a client with overall timeout (spans all retries).
DrainBody drains the body of the given of the given HTTP request.
GetFreePort is simple utility to find a free port on the "localhost" interface of the host machine for a local server to use.
NewClient returns a copy of DefaultClient.
NewClientWithTransport returns a copy of default client, plus changes to the transport layer.
NewServer creates a new server.
NewServerWithTimeout creates a new server with request timeout duration and a message that will be in the response body.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DefaultClient is a dp-net specific http client with sensible timeouts, exponential backoff, and a contextual dialer.
DefaultTransport is the default implementation of Transport and is used by DefaultClient.
# Structs
Client is an extension of the net/http client with ability to add timeouts, exponential backoff and context-based cancellation.
ClienterMock is a mock implementation of Clienter.
Server is a http.Server with sensible defaults, which supports configurable middleware and timeouts, and shuts down cleanly on SIGINT/SIGTERM.
# Interfaces
Clienter provides an interface for methods on an HTTP Client.
# Type aliases
No description provided by the author