Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClientSpy ¶
type HttpClientSpy[T any] struct { Results []*HttpClientSpyResponse[T] Requests []*http.Request }
func NewHttpClientSpy ¶
func NewHttpClientSpy[T any](responses ...*HttpClientSpyResponse[T]) *HttpClientSpy[T]
func (*HttpClientSpy[T]) DoWithContext ¶
DoWithContext implements httpclient.HttpClient.
type HttpClientSpyResponse ¶
func NewHttpClientSpyResponse ¶
func NewHttpClientSpyResponse[T any](response T, err error) *HttpClientSpyResponse[T]
Click to show internal directories.
Click to hide internal directories.