Versions in this module Expand all Collapse all v1 v1.1.1 Oct 5, 2023 v1.1.0 Oct 5, 2023 Changes in this version + func RegisterResponseHandler(mime string, handler ResponseHandler) + type CompletedRequest struct + Recorder *httptest.ResponseRecorder + Strict bool + func (c *CompletedRequest) Code() int + func (c *CompletedRequest) DisallowUnknownFields() + func (c *CompletedRequest) UnmarshalBodyToObject(obj interface{}) error + func (c *CompletedRequest) UnmarshalJsonToObject(obj interface{}) error + type RequestBuilder struct + Body []byte + Cookies []*http.Cookie + Error error + Headers map[string]string + Method string + Path string + func NewRequest() *RequestBuilder + func (r *RequestBuilder) Delete(path string) *RequestBuilder + func (r *RequestBuilder) Get(path string) *RequestBuilder + func (r *RequestBuilder) Go(t *testing.T, e *echo.Echo) *CompletedRequest + func (r *RequestBuilder) GoWithHTTPHandler(t *testing.T, handler http.Handler) *CompletedRequest + func (r *RequestBuilder) Patch(path string) *RequestBuilder + func (r *RequestBuilder) Post(path string) *RequestBuilder + func (r *RequestBuilder) Put(path string) *RequestBuilder + func (r *RequestBuilder) WithAccept(value string) *RequestBuilder + func (r *RequestBuilder) WithAcceptJson() *RequestBuilder + func (r *RequestBuilder) WithBody(body []byte) *RequestBuilder + func (r *RequestBuilder) WithContentType(value string) *RequestBuilder + func (r *RequestBuilder) WithCookie(c *http.Cookie) *RequestBuilder + func (r *RequestBuilder) WithCookieNameValue(name, value string) *RequestBuilder + func (r *RequestBuilder) WithHeader(header, value string) *RequestBuilder + func (r *RequestBuilder) WithHost(value string) *RequestBuilder + func (r *RequestBuilder) WithJWSAuth(jws string) *RequestBuilder + func (r *RequestBuilder) WithJsonBody(obj interface{}) *RequestBuilder + func (r *RequestBuilder) WithJsonContentType() *RequestBuilder + func (r *RequestBuilder) WithMethod(method string, path string) *RequestBuilder + type ResponseHandler func(contentType string, raw io.Reader, obj interface{}, strict bool) error