Expand description
Procedural macros for the SunWeb framework.
You should not depend on this crate directly — use [sunweb] instead,
which re-exports everything from here.
Attribute Macros§
- delete
- Registers a function as a
DELETEroute handler. - error_
page - Registers a custom error page handler for a specific HTTP status code.
- get
- Registers a function as a
GETroute handler. - head
- Registers a function as a
HEADroute handler. - middleware
- Registers a middleware function that runs before or after route handlers.
- options
- Registers a function as an
OPTIONSroute handler. - patch
- Registers a function as a
PATCHroute handler. - post
- Registers a function as a
POSTroute handler. - proxy
- Registers a reverse-proxy route that forwards requests to an external URL.
- put
- Registers a function as a
PUTroute handler. - static_
files - Serves all files inside a folder under a URL path prefix.
Derive Macros§
- App
- Derive macro that wires up your app struct with a [
AppBuilder] entry point.