The body type used in axum requests and responses.
A stream created from a
Body
.
A cheaply cloneable and sliceable chunk of contiguous memory.
A collected body produced by
BodyExt::collect
which collects all the DATA frames
and trailers.
Extractor for getting connection information produced by a
Connected
.
Layer for configuring the default request body limit.
A body that is always empty.
Extractor and response for extensions.
A frame of any kind related to an HTTP stream (body).
Middleware that runs an extractor and discards the value.
A middleware created from an async function.
A body that consists of a single chunk.
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.
An error returned when body length exceeds the configured limit.
A length limited body.
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.
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.
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 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
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.
Represents the scheme component of a URI
Declaratively construct
Service
values.
A
Service
implemented by a closure.
A
MakeService
that produces services by cloning an inner service.
A Body
size hint
Extractor for state.
An HTTP status code (status-code
in RFC 7230 et al.).
Response future for [TowerToHyperService
].
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.