Expand description
Lower-level types and re-exports.
Most users will not have to interact with the types in this module, but it is useful for those writing extractors, middleware, libraries, or interacting with the service API directly.
§Request Extractors
ConnectionInfo
: Connection informationPeerAddr
: Connection information
Macros§
- An implementation of
poll_ready
that always signals readiness. - An implementation of
poll_ready
that forwards readiness checks to a named struct field.
Structs§
- Application connection config.
- Application configuration
- HTTP connection information.
- A type map for request extensions.
- Resource path match information.
- Extractor for peer’s socket address.
- Stream that reads request line by line.
- Describes the set of paths that match to a resource.
- An HTTP response.
- General purpose TCP server that runs services receiving Tokio
TcpStream
s. - Server handle.
- A service level request wrapper.
- A service level response wrapper.
- Future that resolves to some
T
when parsed from a URL encoded payload.
Enums§
- Future that resolves to some
T
when parsed from a JSON payload. - A streaming payload.
Traits§
- An asynchronous operation from
Request
to aResponse
. - Factory for creating
Service
s. - Defines the interface of a service factory that wraps inner service during construction.
Functions§
- Create
ServiceFactory
for function that can produce services - Create
ServiceFactory
for function that can act as aService