Expand description
Route to handlers based on HTTP methods.
Modules§
- openapi
openapi - Route to handlers based on HTTP methods with automatic OpenAPI generation support.
Structs§
- Method
Router - A router that routes requests based on the HTTP method.
Functions§
- connect
- Create a new
MethodRouterwith aCONNECThandler. - delete
- Create a new
MethodRouterwith aDELETEhandler. - get
- Create a new
MethodRouterwith aGEThandler. - head
- Create a new
MethodRouterwith aHEADhandler. - options
- Create a new
MethodRouterwith aOPTIONShandler. - patch
- Create a new
MethodRouterwith aPATCHhandler. - post
- Create a new
MethodRouterwith aPOSThandler. - put
- Create a new
MethodRouterwith aPUThandler. - trace
- Create a new
MethodRouterwith aTRACEhandler.