Versions in this module Expand all Collapse all v0 v0.0.3 Oct 23, 2023 v0.0.2 Oct 22, 2023 Changes in this version + func BodyAsJson(t *testing.T, resp *http.Response, jsonBody any) + func BodyAsString(t *testing.T, resp *http.Response) string + type HttpTestRunner struct + func NewHttpTestRunner(t *testing.T) *HttpTestRunner + func (r *HttpTestRunner) Clear() *HttpTestRunner + func (r *HttpTestRunner) ClearBodyAfter() *HttpTestRunner + func (r *HttpTestRunner) ClearFuncAfter() *HttpTestRunner + func (r *HttpTestRunner) ClearHeaderAfter() *HttpTestRunner + func (r *HttpTestRunner) Delete() (resp *http.Response, err error) + func (r *HttpTestRunner) Get() (resp *http.Response, err error) + func (r *HttpTestRunner) Head() (resp *http.Response, err error) + func (r *HttpTestRunner) Post() (resp *http.Response, err error) + func (r *HttpTestRunner) Put() (resp *http.Response, err error) + func (r *HttpTestRunner) Run() (resp *http.Response, err error) + func (r *HttpTestRunner) WithBody(body io.Reader) *HttpTestRunner + func (r *HttpTestRunner) WithFunc(hFunc func(http.ResponseWriter, *http.Request)) *HttpTestRunner + func (r *HttpTestRunner) WithHandler(handler http.Handler) *HttpTestRunner + func (r *HttpTestRunner) WithHeader(key string, value string) *HttpTestRunner + func (r *HttpTestRunner) WithJsonBody(typedBody any) *HttpTestRunner + func (r *HttpTestRunner) WithMethod(method string) *HttpTestRunner + func (r *HttpTestRunner) WithPath(path string) *HttpTestRunner + func (r *HttpTestRunner) WithStringBody(stringBody string) *HttpTestRunner + func (r *HttpTestRunner) WithValues(values url.Values) *HttpTestRunner