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§
- always_
ready - An implementation of
poll_readythat always signals readiness. - forward_
ready - An implementation of
poll_readythat forwards readiness checks to a named struct field.
Structs§
- AppConfig
- Application connection config.
- AppService
- Application configuration
- Connection
Info - HTTP connection information.
- Decompress
- Extensions
- A type map for request extensions.
- Path
- Resource path match information.
- Peer
Addr - Extractor for peer’s socket address.
- Readlines
- Stream that reads request line by line.
- Request
Head - Resource
Def - Describes the set of paths that match to a resource.
- Resource
Map - Response
- An HTTP response.
- Response
Head - Server
- General purpose TCP server that runs services receiving Tokio
TcpStreams. - Server
Handle - Server handle.
- Service
Request - A service level request wrapper.
- Service
Response - A service level response wrapper.
- Url
- UrlEncoded
- Future that resolves to some
Twhen parsed from a URL encoded payload. - WebService
Enums§
Traits§
- Http
Service Factory - Resource
Path - Service
- An asynchronous operation from
Requestto aResponse. - Service
Factory - Factory for creating
Services. - Transform
- Defines the interface of a service factory that wraps inner service during construction.
Functions§
- fn_
factory - Create
ServiceFactoryfor function that can produce services - fn_
service - Create
ServiceFactoryfor function that can act as aService