Versions in this module Expand all Collapse all v1 v1.0.1 Nov 23, 2022 Changes in this version + func HeaderMatcher(key, value string) interface + func JSONMatcher(o1 interface{}) interface + func MultiHeaderMatcher(desiredHeaders http.Header) interface + func ToJSON(obj interface{}) []byte + type Handler interface + Handle func(method, path string, body []byte) Response + type HandlerWithHeaders interface + HandleWithHeaders func(method, path string, headers http.Header, body []byte) Response + type MockHandler struct + func NewMockHandler(t assert.TestingT) *MockHandler + func (m *MockHandler) Handle(method, path string, body []byte) Response + type MockHandlerWithHeaders struct + func NewMockHandlerWithHeaders(t assert.TestingT) *MockHandlerWithHeaders + func (m *MockHandlerWithHeaders) Handle(method, path string, body []byte) Response + func (m *MockHandlerWithHeaders) HandleWithHeaders(method, path string, headers http.Header, body []byte) Response + type OKHandler struct + func (r *OKHandler) Handle(method, path string, body []byte) Response + type Response struct + Body []byte + Header http.Header + Status int + type Server struct + func NewServer(handler Handler) *Server + func NewUnstartedServer(handler Handler) *Server + func (s *Server) Close() + func (s *Server) Start() + func (s *Server) URL() string