You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: handler.go
+6-9
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,10 @@ package core
2
2
3
3
import"net/http"
4
4
5
-
// Handler represents a request handler.
6
-
typeHandlerfunc(*Context)
7
-
8
5
// HandlersStack contains a set of handlers.
9
6
typeHandlersStackstruct {
10
-
Handlers []Handler// The handlers stack.
11
-
PanicHandlerHandler// The handler called in case of panic. Useful to send custom server error information. Context.Data["panic"] contains the panic error.
7
+
Handlers []func(*Context)// The handlers stack.
8
+
PanicHandlerfunc(*Context)// The handler called in case of panic. Useful to send custom server error information. Context.Data["panic"] contains the panic error.
12
9
}
13
10
14
11
// defaultHandlersStack contains the default handlers stack used for serving.
0 commit comments