Versions in this module Expand all Collapse all v0 v0.0.4 Nov 8, 2022 v0.0.3 Nov 8, 2022 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 VerifyMimeType(mimeType string) http.HandlerFunc + func VerifyProtoRepresenting(expected proto.Message) http.HandlerFunc + func VerifyRequest(method string, path interface{}, rawQuery ...string) http.HandlerFunc + type GHTTPWithGomega struct + func NewGHTTPWithGomega(gomega Gomega) *GHTTPWithGomega + func (g GHTTPWithGomega) RespondWith(statusCode int, body interface{}, optionalHeader ...http.Header) http.HandlerFunc + func (g GHTTPWithGomega) RespondWithJSONEncoded(statusCode int, object interface{}, optionalHeader ...http.Header) http.HandlerFunc + func (g GHTTPWithGomega) RespondWithJSONEncodedPtr(statusCode *int, object interface{}, optionalHeader ...http.Header) http.HandlerFunc + func (g GHTTPWithGomega) RespondWithProto(statusCode int, message proto.Message, optionalHeader ...http.Header) http.HandlerFunc + func (g GHTTPWithGomega) RespondWithPtr(statusCode *int, body interface{}, optionalHeader ...http.Header) http.HandlerFunc + func (g GHTTPWithGomega) VerifyBasicAuth(username string, password string) http.HandlerFunc + func (g GHTTPWithGomega) VerifyBody(expectedBody []byte) http.HandlerFunc + func (g GHTTPWithGomega) VerifyContentType(contentType string) http.HandlerFunc + func (g GHTTPWithGomega) VerifyForm(values url.Values) http.HandlerFunc + func (g GHTTPWithGomega) VerifyFormKV(key string, values ...string) http.HandlerFunc + func (g GHTTPWithGomega) VerifyHeader(header http.Header) http.HandlerFunc + func (g GHTTPWithGomega) VerifyHeaderKV(key string, values ...string) http.HandlerFunc + func (g GHTTPWithGomega) VerifyJSON(expectedJSON string) http.HandlerFunc + func (g GHTTPWithGomega) VerifyJSONRepresenting(object interface{}) http.HandlerFunc + func (g GHTTPWithGomega) VerifyMimeType(mimeType string) http.HandlerFunc + func (g GHTTPWithGomega) VerifyProtoRepresenting(expected proto.Message) http.HandlerFunc + func (g GHTTPWithGomega) 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) GetAllowUnhandledRequests() bool + func (s *Server) GetHandler(index int) http.HandlerFunc + func (s *Server) GetUnhandledRequestStatusCode() int + 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) SetAllowUnhandledRequests(allowUnhandledRequests bool) + func (s *Server) SetHandler(index int, handler http.HandlerFunc) + func (s *Server) SetUnhandledRequestStatusCode(statusCode int) + func (s *Server) Start() + func (s *Server) URL() string + func (s *Server) WrapHandler(index int, handler http.HandlerFunc)