Express class

Constructors

Express()
factory

Properties

client HttpServer?
getter/setter pair
cors Cors?
getter/setter pair
expressDirs List<ExpressDir>
getter/setter pair
getAllRoutes Map
no setter
hashCode int
The hash code for this object.
no setterinherited
host ↔ dynamic
getter/setter pair
lgr → void
final
port int?
getter/setter pair
response String
getter/setter pair
router Router
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String?
getter/setter pair

Methods

copy(ExpressMethod routeData) → dynamic
create a copy request, route: uri, callbacks: list of callback functions to run.
delete(ExpressMethod routeData) → dynamic
create a delete request, route: uri, callbacks: list of callback functions to run.
get(ExpressMethod routeData) → dynamic
create a get request, route: uri, callbacks: list of callback functions to run
getQuery(String route) → dynamic
Gets query Parameters
getRouteParams(String route, Map<String, List> query) Map<String, dynamic>?
create a head request, route: uri, callbacks: list of callback functions to run.
create a link request, route: uri, callbacks: list of callback functions to run.
lock(ExpressMethod routeData) → dynamic
create a lock request, route: uri, callbacks: list of callback functions to run.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCall(HttpRequest request) → dynamic
onClose() → void
onRestart(int port) → void
options(ExpressMethod routeData) → dynamic
create a options request, route: uri, callbacks: list of callback functions to run.
patch(ExpressMethod routeData) → dynamic
create a patch request, route: uri, callbacks: list of callback functions to run.
post(ExpressMethod routeData) → dynamic
propfind(ExpressMethod routeData) → dynamic
create a propfind request, route: uri, callbacks: list of callback functions to run.
purge(ExpressMethod routeData) → dynamic
create a purge request, route: uri, callbacks: list of callback functions to run.
put(ExpressMethod routeData) → dynamic
create a put request, route: uri, callbacks: list of callback functions to run.
stream(int port, {Function? callback, SecurityContext? context, String? messageReturn = '', String? address, dynamic errorHandler(Object e, StackTrace c)?}) → dynamic
toString() String
A string representation of this object.
inherited
create a unlink request, route: uri, callbacks: list of callback functions to run.
unlock(ExpressMethod routeData) → dynamic
create a unlock request, route: uri, callbacks: list of callback functions to run.
use(dynamic obj) → dynamic
Let Sevr Know where to find your files
view(ExpressMethod routeData) → dynamic
create a view request, route: uri, callbacks: list of callback functions to run.

Operators

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

Static Properties

newsessionManager SessionManager?
getter/setter pair

Static Methods

static(String dir) → ExpressDir