HRouter class

Inheritance

Constructors

HRouter({String? basePath, List<HRoute> routes = const [], RouterConfig? config})
factory

Properties

basePath String
finalinherited
config RouterConfig
finalinherited
hashCode int
The hash code for this object.
no setterinherited
routes List<Route>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String path, HttpMethod method, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
addRoute(Route route) → void
inherited
canHandle(RequestEntity request) bool
Return true or false if this router can successfully process a request This means if the router if found, and the methods match
inherited
delete(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
get(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
handler(RequestEntity request) FutureOr<ResponseEntity>
inherited
handlerRoute(RequestEntity request) Route?
Return the route that will handle the request If a null value is returned, it means that this router can handle the request with a route It will return an status code like 404 or 415
inherited
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
patch(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
post(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
put(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
query(String path, RequestHandler handler, {FilterConfig? filterConfig}) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited