RoutesMethods extension
The <method>
extension.
- on
Methods
-
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
. -
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
. -
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
.