Documentation ¶ Index ¶ func Recover(next types.HandlerFunc, req *http.Request) (resp http.Response) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Recover ¶ func Recover(next types.HandlerFunc, req *http.Request) (resp http.Response) Recover is a basic middleware that catches any panics, and returns 500 Internal Server Error instead. Response headers and body are being discarded in consistency purposes, avoiding half-cooked response being sent Types ¶ This section is empty. Source Files ¶ View all Source files recover.go Click to show internal directories. Click to hide internal directories.