EndPoint class

every request must have a endpoint ready to handle it else the palace will respond with res.notFoundHandler() 404 each endpoint has its own method

Constructors

EndPoint({required String path, required String method, required Handler handler, List<Function> guards = const []})
const

Properties

guards List<Function>
final
handler Handler
final
hashCode int
The hash code for this object.
no setterinherited
method String
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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