Documentation ¶ Index ¶ func DoUnmarshalJSONResponse(client Client, request *http.Request, response any) error func NewPostFormRequest(ctx context.Context, endpoint string, values url.Values) (*http.Request, error) func StatusError(resp *http.Response) error type Client Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DoUnmarshalJSONResponse ¶ func DoUnmarshalJSONResponse(client Client, request *http.Request, response any) error func NewPostFormRequest ¶ func NewPostFormRequest(ctx context.Context, endpoint string, values url.Values) (*http.Request, error) func StatusError ¶ func StatusError(resp *http.Response) error Types ¶ type Client ¶ type Client interface { Do(req *http.Request) (*http.Response, error) } Client is an interface for an http.Client from the standard library that allows us to more easily extend and/or mock out the existing http client from the standard library. Source Files ¶ View all Source files client.go do_json_response.go form_request.go status_error.go Click to show internal directories. Click to hide internal directories.