Momentum class

Constructors

Momentum({Map? cors = const {}, Map? basicAuth = const {}})

Properties

basicAuth Map?
getter/setter pair
cors Map?
getter/setter pair
functions List<Function>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
methods Map
getter/setter pair
paths List<String>
getter/setter pair
routeKeys Map
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createMap() → void
createServer(int port, String host, {bool isShared = false}) Future<HttpServer>
DELETE(String path, Function fn) Future
GET(String path, Function fn) Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
PATCH(String path, Function fn) Future
POST(String path, Function fn) Future
PUT(String path, Function fn) Future
runServer({dynamic server = '', String? host = '127.0.0.1', int port = 80, bool compress = true, bool isShared = false}) Future<void>
toString() String
A string representation of this object.
inherited
UPDATE(String path, Function fn) Future

Operators

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