Releases: NearlyUnique/httptestclient
Releases · NearlyUnique/httptestclient
Release list
Change from %s formatting to $<name|index>
A go vet rule "non-constant format string in call to URL()" makes using %s style format difficult without having different methods names depending on how the path might be specified.
previous code
resp := httptestclient.New(t).
Post("/any/%s", "database-key").
DoSimple(s)New style
resp := httptestclient.New(t).
Post("/any/$0", "database-key").
DoSimple(s)or
resp := httptestclient.New(t).
Get("/any/$key", map[string]any{ "key": "database-key" }).
DoSimple(s)Forms, Redirects and Cookies
Add support for Forms, Redirects and cookies
Basic version (tidy readme)
Reword the readme for clarity and to update https://pkg.go.dev/github.com/NearlyUnique/httptestclient
Basic version
Added BuildRequest() to enable use of the httptest.ResponseRecorder
Initial release for feedback
Basic needs met, create and send requests, receive and parse response