Application class

Implemented types
Annotations

Constructors

Application()

Properties

locals → dynamic
read-only
mountpath → dynamic
Contains one or more path patterns on which a sub-app was mounted.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

all(String path, dynamic handlers) → void
Matches all HTTP verbs for path. [...]
delete(String path, dynamic handlers) → void
Routes HTTP DELETE requests to the specified path with the specified handler functions. [...]
disable(String name) → void
Sets the Boolean setting name to false, where name is one of the constants from ApplicationSetting. [...]
disabled(String name) → bool
Returns true if the Boolean setting name is disabled (false). [...]
enable(String name) → void
Sets the Boolean setting name to true, where name is one of the constants from ApplicationSetting. [...]
engine(String ext, dynamic callback) → void
get(String path, dynamic handlers) → void
Routes HTTP GET requests to the specified path with the specified handler functions. [...]
listen(int port, [String hostname, dynamic backlog, dynamic callback]) HttpServer
param(dynamic param, RequestParamHandler handler) → void
path() → String
post(String path, dynamic handlers) → void
Routes HTTP POST requests to the specified path with the specified handler functions. [...]
put(String path, dynamic handlers) → void
Routes HTTP PUT requests to the specified path with the specified handler functions. [...]
render(dynamic view, dynamic locals, dynamic callback(dynamic err, dynamic html)) → String
route(String path) Route
set(String name, dynamic value) → void
use(String path, dynamic handlers) → void
Mounts the specified handlers at the specified path. [...]
addListener(dynamic eventName, Function listener) → void
inherited
emit(dynamic eventName, [dynamic arg1, dynamic arg2, dynamic arg3, dynamic arg4, dynamic arg5, dynamic arg6]) → void
inherited
eventNames() → List
inherited
getMaxListeners() → int
inherited
listenerCount(dynamic eventName) → int
inherited
listeners(dynamic eventName) → List<Function>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
on(dynamic eventName, Function listener) EventEmitter
inherited
once(dynamic eventName, Function listener) EventEmitter
inherited
prependListener(dynamic eventName, Function listener) EventEmitter
inherited
prependOnceListener(dynamic eventName, Function listener) EventEmitter
inherited
rawListeners(dynamic eventName) → List<Function>
inherited
removeAllListeners(dynamic eventName) EventEmitter
inherited
removeListener(dynamic eventName, Function listener) EventEmitter
inherited
setMaxListeners(int value) → void
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited