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_readythat always signals readiness. - An implementation of
poll_readythat 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
TcpStreams. - Server handle.
- A service level request wrapper.
- A service level response wrapper.
- Future that resolves to some
Twhen parsed from a URL encoded payload.
Enums§
- Future that resolves to some
Twhen parsed from a JSON payload. - A streaming payload.
Traits§
- An asynchronous operation from
Requestto aResponse. - Factory for creating
Services. - Defines the interface of a service factory that wraps inner service during construction.
Functions§
- Create
ServiceFactoryfor function that can produce services - Create
ServiceFactoryfor function that can act as aService