HttpRoute class

! ---------------------------------------------------------------------------

Implementers

Constructors

HttpRoute.new(String path, {required Set<String> methods, FutureOr<void> handler(HttpRequest request, HttpRoutePayload payload)?, List<HttpController>? controllers, List<HttpRoute>? routes})
const
HttpRoute.all(String path, {FutureOr<void> handler(HttpRequest request, HttpRoutePayload payload)?, List<HttpController>? controllers, List<HttpRoute>? routes})
const
HttpRoute.get(String path, {FutureOr<void> handler(HttpRequest request, HttpRoutePayload payload)?, List<HttpController>? controllers, List<HttpRoute>? routes})
const
HttpRoute.post(String path, {FutureOr<void> handler(HttpRequest request, HttpRoutePayload payload)?, List<HttpController>? controllers, List<HttpRoute>? routes})
const

Properties

controllers List<HttpController>?
final
handler FutureOr<void> Function(HttpRequest request, HttpRoutePayload payload)?
final
hashCode int
The hash code for this object.
no setterinherited
methods Set<String>
final
path String
final
routes List<HttpRoute>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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