DefaultRouter is the registry of all registered routes for an `Echo` instance for request matching and URL path parameter parsing. Note: DefaultRouter is not coroutine-safe. Do not Add/Remove routes after HTTP server has been started with Echo.
| 58 | // request matching and URL path parameter parsing. |
| 59 | // Note: DefaultRouter is not coroutine-safe. Do not Add/Remove routes after HTTP server has been started with Echo. |
| 60 | type DefaultRouter struct { |
| 61 | tree *node |
| 62 | notFoundHandler HandlerFunc |
| 63 | methodNotAllowedHandler HandlerFunc |
| 64 | optionsMethodHandler HandlerFunc |
| 65 | routes Routes |
| 66 | // maxPathParamsLength tracks highest count of PathValues for all routes. |
| 67 | maxPathParamsLength int |
| 68 | |
| 69 | allowOverwritingRoute bool |
| 70 | unescapePathParamValues bool |
| 71 | useEscapedPathForRouting bool |
| 72 | } |
| 73 | |
| 74 | // RouterConfig is configuration options for (default) router |
| 75 | type RouterConfig struct { |
nothing calls this directly
no outgoing calls
no test coverage detected