RoutesBuilder$Methods extension
Methods
-
delete<
T> (String path, FutureOr< T> closure(HttpRequest request)) → void -
Registers a
DELETE
route that responds to with the result of theclosure
. -
get<
T> (String path, FutureOr< T> closure(HttpRequest request)) → void -
Registers a
GET
route that responds to with the result of theclosure
. -
head<
T> (String path, FutureOr< T> closure(HttpRequest request)) → void -
Registers a
HEAD
route that responds to with the result of theclosure
. -
patch<
T> (String path, FutureOr< T> closure(HttpRequest request)) → void -
Registers a
PATCH
route that responds to with the result of theclosure
. -
post<
T> (String path, FutureOr< T> closure(HttpRequest request)) → void -
Registers a
POST
route that responds to with the result of theclosure
. -
put<
T> (String path, FutureOr< T> closure(HttpRequest request)) → void -
Registers a
PUT
route that responds to with the result of theclosure
.