The body type used in axum requests and responses.
Concrete implementation of (Body).
A cheaply cloneable and sliceable chunk of contiguous memory.
Extractor for getting connection information produced by a
Connected
.
Layer for configuring the default request body limit.
Extractor and response for extensions.
URL encoded extractor and response.
Middleware that runs an extractor and discards the value.
A middleware created from an async function.
A set of HTTP headers
Represents an HTTP header field name
Represents an HTTP header field value.
Extractor that resolves the hostname of the request.
JSON Extractor / Response.
A middleware created from an async function that transforms a request.
A
tower::Layer
from an async function that transforms a request.
A middleware created from an async function that transforms a response.
A
tower::Layer
from an async function that transforms a response.
Access the path in the router that matches the request.
A filter that matches one or more HTTP methods.
A
Service
that accepts requests based on a
MethodFilter
and
allows chaining additional handlers and services.
Extractor that parses multipart/form-data
requests (commonly used with file uploads).
Access the path the matched the route is nested at.
The remainder of a middleware stack, including the handler.
Extractor that gets the original request URI regardless of nesting.
Extractor that will get captures from the URL and parse them using
serde
.
Extractor that deserializes query strings into some type.
Extractor that extracts raw form requests.
Extractor that will get captures from the URL without deserializing them.
Extractor that extracts the raw query string, without parsing it.
Response that redirects the request to another location.
Represents an HTTP request.
Component parts of an HTTP Request
Represents an HTTP response
Component parts of an HTTP Response
How routes are stored inside a
Router
.
The router type for composing handlers and services.
A
Router
converted into a borrowed
Service
with a fixed body type.
Declaratively construct
Service
values.
A
Service
implemented by a closure.
A
MakeService
that produces services by cloning an inner service.
Extractor for state.
An HTTP status code (status-code
in RFC 7230 et al.).
The URI component of a request.
A stream of WebSocket messages.
Extractor for establishing WebSocket connections.
Route requests with the given handler regardless of the method.
Route requests to the given service regardless of its method.
Route DELETE
requests to the given handler.
Route DELETE
requests to the given service.
Create a middleware from an extractor.
Create a middleware from an extractor with the given state.
Create a middleware from an async function.
Create a middleware from an async function with the given state.
Route GET
requests to the given handler.
Route GET
requests to the given service.
Route HEAD
requests to the given handler.
Route HEAD
requests to the given service.
Create a middleware from an async function that transforms a request.
Create a middleware from an async function that transforms a request, with the given state.
Create a middleware from an async function that transforms a response.
Create a middleware from an async function that transforms a response, with the given state.
Route requests with the given method to the handler.
Route requests with the given method to the service.
Route OPTIONS
requests to the given handler.
Route OPTIONS
requests to the given service.
Route PATCH
requests to the given handler.
Route PATCH
requests to the given service.
Route POST
requests to the given handler.
Route POST
requests to the given service.
Route PUT
requests to the given handler.
Route PUT
requests to the given service.
Returns a new
ServiceFn
with the given closure.
Route TRACE
requests to the given handler.
Route TRACE
requests to the given service.