WebApplication class

Inheritance
Mixed in types

Constructors

WebApplication({dynamic host: "127.0.0.1", dynamic port: 8080, dynamic wsPath: '/ws', dynamic staticFiles: '../static/', dynamic clientFiles: '../build/web/', dynamic clientServe: true, String views: "../views/", dynamic startPage, dynamic cors: true})

Properties

bind_address InternetAddress
read / write, inherited
clientFiles ↔ dynamic
read / write, inherited
clientServe ↔ dynamic
read / write, inherited
cors bool
read / write
exceptionResolver HandlerExceptionResolver
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
host ↔ dynamic
read / write, inherited
interceptors InterceptorsCollection
read / write
localeResolver LocaleResolver
read / write
log Logger
final
port ↔ dynamic
read / write, inherited
registry ForceRegistry
read / write
requestStreamer HttpRequestStreamer
read / write
responseHooks List<ResponseHook>
read / write
router Router
read / write, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
securityContext SecurityContextHolder
read / write
servingAssistent ServingAssistent
read / write, inherited
staticFiles ↔ dynamic
read / write, inherited
staticFileTypes List
read / write, inherited
strategy SecurityStrategy
write-only
viewRender ForceViewRender
read / write
views String
read / write
virDir ↔ dynamic
read / write, inherited
wsPath ↔ dynamic
read / write, inherited

Methods

checkSecurity(HttpRequest req, List<String> roles) bool
init() → void
inherited
loadValues(String path) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notFound(ControllerHandler controllerHandler) → void
register(Object obj) → void
requestHandler(HttpRequest request, [WebSocketHandler handleWs]) → void
This requestHandler can be used to hook into the system without having to start a server. You need to use this method for example with Google App Engine runtime. [...]
serve(String name) Stream<HttpRequest>
inherited
serveFile(HttpRequest request, String root, String fileName) → void
inherited
setupConsoleLog([Level level = Level.INFO]) → void
inherited
start({WebSocketHandler handleWs: null, FallbackStart fallback}) Future
This method helps to start your webserver. [...]
inherited
startSecure({WebSocketHandler handleWs: null, SecurityContext context, bool requestClientCertificate: false, int backlog: 0}) Future
This method helps to start your webserver in a secure way. [...]
inherited
static(Pattern url, String name, {dynamic method: RequestMethod.GET, List<String> roles}) → void
toString() String
Returns a string representation of this object.
inherited
use(Pattern url, ControllerHandler controllerHandler, {dynamic method: RequestMethod.GET, List<String> roles}) → void

Operators

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