Skip to main contentModule routing
Source - Router
- The router type for composing handlers and services.
- State
- Extractor for state.
- FromRef
- Used to do reference-to-value conversions thus not consuming the input value.
- any
- Route requests with the given handler regardless of the method.
- connect
- Route
CONNECT requests to the given handler. - delete
- Route
DELETE requests to the given handler. - get
- Route
GET requests to the given handler. - head
- Route
HEAD requests to the given handler. - options
- Route
OPTIONS requests to the given handler. - patch
- Route
PATCH requests to the given handler. - post
- Route
POST requests to the given handler. - put
- Route
PUT requests to the given handler. - trace
- Route
TRACE requests to the given handler.
- FromRef
- Derive an implementation of
FromRef for each field in a struct.