Router class
Methods
-
connect(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
delete(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
get(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
options(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
patch(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
post(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
put(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-
-
serveHTTP()
→ Future
-
-
setDIContainer(Container container)
→ void
-
-
terminate()
→ Future
-
forcibly shut down the server
userful if the server is running in the background
-
toString()
→ String
-
A string representation of this object.
inherited
-
trace(String path, {RequestCallback? handler, Controller? controller, String? method, List<MiddlewareFunc> middleware = const []})
→ void
-