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 applicationno 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 - Adds a all request method route.
-
delete<
T> (String path, Handler< T> handler) → void -
Available on Routes, provided by the RoutesMethods extension
Registers aDELETE
route that responds to with the result of theclosure
. -
get<
T> (String path, Handler< T> handler) → void -
Available on Routes, provided by the RoutesMethods extension
Registers aGET
route that responds to with the result of theclosure
. -
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
-
head<
T> (String path, Handler< T> handler) → void -
Available on Routes, provided by the RoutesMethods extension
Registers aHEAD
route that responds to with the result of theclosure
. -
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
andpath
.inherited -
patch<
T> (String path, Handler< T> handler) → void -
Available on Routes, provided by the RoutesMethods extension
Registers aPATCH
route that responds to with the result of theclosure
. -
post<
T> (String path, Handler< T> handler) → void -
Available on Routes, provided by the RoutesMethods extension
Registers aPOST
route that responds to with the result of theclosure
. -
put<
T> (String path, Handler< T> handler) → void -
Available on Routes, provided by the RoutesMethods extension
Registers aPUT
route that responds to with the result of theclosure
. -
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 withhooks
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited