Versions in this module Expand all Collapse all v1 v1.2.0 Jul 16, 2017 v1.1.0 Mar 26, 2017 Changes in this version + func CombineHandlers(handlers ...http.HandlerFunc) http.HandlerFunc + func RespondWith(statusCode int, body interface{}, optionalHeader ...http.Header) http.HandlerFunc + func RespondWithJSONEncoded(statusCode int, object interface{}, optionalHeader ...http.Header) http.HandlerFunc + func RespondWithJSONEncodedPtr(statusCode *int, object interface{}, optionalHeader ...http.Header) http.HandlerFunc + func RespondWithProto(statusCode int, message proto.Message, optionalHeader ...http.Header) http.HandlerFunc + func RespondWithPtr(statusCode *int, body interface{}, optionalHeader ...http.Header) http.HandlerFunc + func VerifyBasicAuth(username string, password string) http.HandlerFunc + func VerifyBody(expectedBody []byte) http.HandlerFunc + func VerifyContentType(contentType string) http.HandlerFunc + func VerifyForm(values url.Values) http.HandlerFunc + func VerifyFormKV(key string, values ...string) http.HandlerFunc + func VerifyHeader(header http.Header) http.HandlerFunc + func VerifyHeaderKV(key string, values ...string) http.HandlerFunc + func VerifyJSON(expectedJSON string) http.HandlerFunc + func VerifyJSONRepresenting(object interface{}) http.HandlerFunc + func VerifyProtoRepresenting(expected proto.Message) http.HandlerFunc + func VerifyRequest(method string, path interface{}, rawQuery ...string) http.HandlerFunc + type Server struct + AllowUnhandledRequests bool + HTTPTestServer *httptest.Server + UnhandledRequestStatusCode int + Writer io.Writer + func NewServer() *Server + func NewTLSServer() *Server + func NewUnstartedServer() *Server + func (s *Server) Addr() string + func (s *Server) AppendHandlers(handlers ...http.HandlerFunc) + func (s *Server) Close() + func (s *Server) CloseClientConnections() + func (s *Server) GetHandler(index int) http.HandlerFunc + func (s *Server) ReceivedRequests() []*http.Request + func (s *Server) Reset() + func (s *Server) RouteToHandler(method string, path interface{}, handler http.HandlerFunc) + func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (s *Server) SetHandler(index int, handler http.HandlerFunc) + func (s *Server) Start() + func (s *Server) URL() string + func (s *Server) WrapHandler(index int, handler http.HandlerFunc)