package
0.0.0-20191104030310-5dfa7fa53fc9
Repository: https://github.com/a-and/pkg.git
Documentation: pkg.go.dev

# Functions

New returns a SpoofingClient that rewrites requests if the target domain is not `resolvable`.
ResolveEndpoint resolves the endpoint address considering whether the domain is resolvable and taking into account whether the user overrode the endpoint address externally.

# Constants

RequestTimeout is the default timeout for the polling requests.

# Structs

Response is a stripped down subset of http.Response.
SpoofingClient is a minimal HTTP client wrapper that spoofs the domain of requests for non-resolvable domains.

# Interfaces

Interface defines the actions that can be performed by the spoofing client.

# Type aliases

ResponseChecker is used to determine when SpoofinClient.Poll is done polling.
TransportOption allows callers to customize the http.Transport used by a SpoofingClient.