Versions in this module Expand all Collapse all v0 v0.2.1 Oct 5, 2026 v0.2.0 Oct 1, 2026 Changes in this version type Client + func (c *Client) Delete(path string) *Response v0.1.0 Aug 4, 2026 Changes in this version + type Call struct + Body []byte + BodyErr error + Header http.Header + Method string + Path string + type Client struct + func NewClient(t *testing.T, d Doer) *Client + func (c *Client) Get(path string) *Response + func (c *Client) PostJSON(path string, body any) *Response + func (c *Client) PutJSON(path string, body any) *Response + func (c *Client) With(key, value string) *Client + type Doer interface + Do func(*http.Request) (*http.Response, error) + type DoerFunc func(*http.Request) (*http.Response, error) + func (f DoerFunc) Do(req *http.Request) (*http.Response, error) + type Recorder struct + func NewRecorder(t *testing.T) *Recorder + func (rec *Recorder) Calls() []Call + func (rec *Recorder) Client() *http.Client + func (rec *Recorder) Respond(status int) + func (rec *Recorder) RespondFunc(h http.HandlerFunc) + func (rec *Recorder) URL() string + func (rec *Recorder) WaitForCalls(n int, within time.Duration) []Call + type Response struct + Body []byte + Code int + Header http.Header + func (r *Response) Decode(target any) *Response + func (r *Response) Status(want int) *Response