Palace class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
notFoundHandler
↔ Handler
-
get the not found handler id none was assigned it will return the defaults 404 handler;
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all(String path, Handler handler, {List<Function> guards = const []})
→ void
-
-
closeGates()
→ Future<void>
-
-
controllers(List<PalaceController> controllers)
→ void
-
-
delete(String path, Handler handler, {List<Function> guards = const []})
→ void
-
-
get(String path, Handler handler, {List<Function> guards = const []})
→ void
-
-
match(String method, String path)
→ EndPoint?
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
openGates({int port = 3000, String? ip, bool enableLogs = true})
→ Future<void>
-
-
patch(String path, Handler handler, {List<Function> guards = const []})
→ void
-
-
post(String path, Handler handler, {List<Function> guards = const []})
→ void
-
-
put(String path, Handler handler, {List<Function> guards = const []})
→ void
-
-
register({required Handler handler, required String path, required String method, required List<Function> guards})
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
use(Function guard)
→ void
-
assign
Guard
to work globally on any request with any method