Spry class abstract interface

Spry application.

Implemented types
Available extensions

Properties

hashCode int
The hash code for this object.
no setterinherited
router → RouterContext<Handler>
The RouterContext bound to the current Spry application
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<Handler>
Stack handler in Spry application.
no setter

Methods

all<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesAll extension

Adds a all request method route.
delete<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a DELETE route that responds to with the result of the closure.
get<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a GET route that responds to with the result of the closure.
group(void fn(Routes routes), {String? path, Iterable<Handler>? uses}) Routes

Available on Routes, provided by the RoutesGroup extension

grouped({String? path, Iterable<Handler>? uses}) Routes

Available on Routes, provided by the RoutesGroup extension

Available on Routes, provided by the RoutesMethods extension

Registers a HEAD route that responds to with the result of the closure.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on<T>(String? method, String path, Handler<T> handler) → void
Adds a handler on match method and path.
inherited
patch<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a PATCH route that responds to with the result of the closure.
post<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a POST route that responds to with the result of the closure.
put<T>(String path, Handler<T> handler) → void

Available on Routes, provided by the RoutesMethods extension

Registers a PUT route that responds to with the result of the closure.
toString() String
A string representation of this object.
inherited
use<T>(Handler<T> handler) → void
Adds a Handler into stack.
ws<T>(String path, Hooks hooks, [Handler<T>? fallback]) → void

Available on Routes, provided by the RoutesWS extension

Register a websocket handler with hooks.

Operators

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