Expand description
Re-exports§
Modules§
- Types and traits for extracting data from requests.
- IO Utility
- HTTP request types.
- HTTP response types.
- Route requests to the appropriate handler.
- Timer for creating timeouts during request parsing and request handling.
- UrlEncodedString and related types.
Macros§
- Extract a value from a request.
$name
must implement FromRequest, but may borrow from the request. If extraction is rejected, the rejection is written to$response_writer
and the function returns. - Extract values from Request Parts. Each
$name
must implement FromRequestParts, but may borrow from the request. If extraction is rejected, the rejection is written to$response_writer
and the function returns.
Structs§
- Server Configuration.
- A Marker showing that the response has been sent.
- How long to wait before timing out for different operations. If set to None, the operation never times out.
Enums§
- Errors arising while handling a request.
- After the response has been sent, should the connection be kept open to allow the client to make further requests on the same TCP connection?
- Whether to perform a graceful shutdown or abort the connection after all requests have been handled.
Traits§
Functions§
- Serve
app
with incoming requests. App has no state. - Serve
app
with incoming requests. App has a state ofState
.