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_ready
that always signals readiness. - forward_
ready - An implementation of
poll_ready
that forwards readiness checks to a named struct field.
Structs§
- AppConfig
- Application connection config.
- AppService
- Application configuration
- Connection
Info - HTTP connection information.
- Decompress
__compress
- 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
TcpStream
s. - 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
T
when parsed from a URL encoded payload. - WebService
Enums§
Traits§
- Http
Service Factory - Resource
Path - Service
- An asynchronous operation from
Request
to aResponse
. - Service
Factory - Factory for creating
Service
s. - Transform
- Defines the interface of a service factory that wraps inner service during construction.
Functions§
- fn_
factory - Create
ServiceFactory
for function that can produce services - fn_
service - Create
ServiceFactory
for function that can act as aService