Application class

Implemented types
Available Extensions

Constructors

Application(HttpServer server, {Map? locals})
Creates a new Spry application with the given server.
Application.factory(ServerFactory factory)
Creates a new Spry application with the given factory.
Application.late([Map? locals])
Creates a new Spry application with late initialization of server.

Properties

hashCode int
The hash code for this object.
no setterinherited
locals Map
Returns application locals.
latefinal
logger → Logger
Returns spry application logger.
no setter
poweredBy String?
Returns spry application default x-powered-by header value.
getter/setter pair
routes Routes
Returns spry application routes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server HttpServer
Returns application binded server.
latefinal

Methods

addRoute<T>(Route<T> route) → void
Adds a route to the routes.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create({required int port, dynamic address, int backlog = 0, bool v6Only = false, bool shared = false}) Future<Application>
Simple create application factory.

Constants

version → const String
Spry application version.