Documentation ¶
Overview ¶
Package httpreplay is for stubbing HTTP requests/responses
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReplayOrFetchTransport ¶
func NewReplayOrFetchTransport(dataDir string, httpClient *http.Client) http.RoundTripper
NewReplayOrFetchTransport returns new http.RoundTripper that replays HTTP response local cache. If the cache is not available, do actual request and record the response to local cache.
func NewReplayTransport ¶
func NewReplayTransport(dataDir string) http.RoundTripper
NewReplayTransport returns new http.RoundTripper that only replays HTTP response from local cache, do not request actually.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.