mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 20:07:04 +00:00
add a way to customize the handler names (recommended: before server execution) so route logging can be more human-friendly on handlers like standard iris middlewares, e.g. request logger
Former-commit-id: 039c233f2d4da0d52b1d6fc86b6d73be14b15608
This commit is contained in:
@@ -58,6 +58,9 @@ type RouteReadOnly interface {
|
||||
// MainHandlerName returns the first registered handler for the route.
|
||||
MainHandlerName() string
|
||||
|
||||
// MainHandlerIndex returns the first registered handler's index for the route.
|
||||
MainHandlerIndex() int
|
||||
|
||||
// StaticSites if not empty, refers to the system (or virtual if embedded) directory
|
||||
// and sub directories that this "GET" route was registered to serve files and folders
|
||||
// that contain index.html (a site). The index handler may registered by other
|
||||
|
||||
Reference in New Issue
Block a user