Versions in this module Expand all Collapse all v0 v0.1.0 Mar 11, 2025 Changes in this version + func Start(t *testing.T) *server + type Matcher func(*http.Request) bool + func OnBody(reader io.Reader) Matcher + func OnGet(uri string) Matcher + func OnHeader(name, value string) Matcher + func OnMethod(method, uri string) Matcher + func OnPost(uri string) Matcher + func (m Matcher) And(other Matcher) Matcher + type Responder func(http.ResponseWriter) + func Response() Responder + func ResponseBody(body string) Responder + func ResponseHeader(name, value string) Responder + func ResponseStatus(statusCode int) Responder + func (r Responder) With(other Responder) Responder