Module routing
Routing between Services and handlers.
Modules
- future Future types.
- method_routing Route to services and handlers based on HTTP methods.
Structs
-
IntoMakeService
A
MakeServicethat produces axum router services. - MethodFilter A filter that matches one or more HTTP methods.
-
MethodRouter
A
Servicethat accepts requests based on aMethodFilterand allows chaining additional handlers and services. -
Route
How routes are stored inside a
Router. - Router The router type for composing handlers and services.
-
RouterAsService
A
Routerconverted into a borrowedServicewith a fixed body type. -
RouterIntoService
A
Routerconverted into an ownedServicewith a fixed body type.
Functions
- any Route requests with the given handler regardless of the method.
- any_service Route requests to the given service regardless of its method.
-
connect
Route
CONNECTrequests to the given handler. -
connect_service
Route
CONNECTrequests to the given service. -
delete
Route
DELETErequests to the given handler. -
delete_service
Route
DELETErequests to the given service. -
get
Route
GETrequests to the given handler. -
get_service
Route
GETrequests to the given service. -
head
Route
HEADrequests to the given handler. -
head_service
Route
HEADrequests to the given service. - on Route requests with the given method to the handler.
- on_service Route requests with the given method to the service.
-
options
Route
OPTIONSrequests to the given handler. -
options_service
Route
OPTIONSrequests to the given service. -
patch
Route
PATCHrequests to the given handler. -
patch_service
Route
PATCHrequests to the given service. -
post
Route
POSTrequests to the given handler. -
post_service
Route
POSTrequests to the given service. -
put
Route
PUTrequests to the given handler. -
put_service
Route
PUTrequests to the given service. -
trace
Route
TRACErequests to the given handler. -
trace_service
Route
TRACErequests to the given service.