Documentation ¶
Index ¶
- func FailWith(statusCode int) http.Handler
- func Ping(w http.ResponseWriter, r *http.Request)
- func Record(method string, url string, headers map[string]string, handleFunc http.Handler) (*httptest.ResponseRecorder, error)
- func RecoveryHandler(w http.ResponseWriter, r *http.Request, err interface{})
- type Recipe
- type Server
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Record ¶
func Record(method string, url string, headers map[string]string, handleFunc http.Handler) (*httptest.ResponseRecorder, error)
Record creates a ResponseRecorder for testing
func RecoveryHandler ¶
func RecoveryHandler(w http.ResponseWriter, r *http.Request, err interface{})
RecoveryHandler represents the recovery handler
Types ¶
Click to show internal directories.
Click to hide internal directories.