Momentum class
Constructors
-
Momentum({Map? cors = const {}, Map? basicAuth = const {}})
-
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
-