Available on crate feature
openapi only.Expand description
Route to handlers based on HTTP methods with automatic OpenAPI generation support.
This contains ApiMethodRouter, a core construct for building APIs that
can be automatically described using OpenAPI.
Structs§
- ApiMethod
Router - A version of
MethodRouterthat supports OpenAPI.
Functions§
- api_
connect - Create a new
ApiMethodRouterwith aCONNECThandler. - api_
delete - Create a new
ApiMethodRouterwith aDELETEhandler. - api_get
- Create a new
ApiMethodRouterwith aGEThandler. - api_
head - Create a new
ApiMethodRouterwith aHEADhandler. - api_
options - Create a new
ApiMethodRouterwith aOPTIONShandler. - api_
patch - Create a new
ApiMethodRouterwith aPATCHhandler. - api_
post - Create a new
ApiMethodRouterwith aPOSThandler. - api_put
- Create a new
ApiMethodRouterwith aPUThandler. - api_
trace - Create a new
ApiMethodRouterwith aTRACEhandler.