Module method

Module method 

Source
Expand description

Route to handlers based on HTTP methods.

Modules§

openapiopenapi
Route to handlers based on HTTP methods with automatic OpenAPI generation support.

Structs§

MethodRouter
A router that routes requests based on the HTTP method.

Functions§

connect
Create a new MethodRouter with a CONNECT handler.
delete
Create a new MethodRouter with a DELETE handler.
get
Create a new MethodRouter with a GET handler.
head
Create a new MethodRouter with a HEAD handler.
options
Create a new MethodRouter with a OPTIONS handler.
patch
Create a new MethodRouter with a PATCH handler.
post
Create a new MethodRouter with a POST handler.
put
Create a new MethodRouter with a PUT handler.
trace
Create a new MethodRouter with a TRACE handler.