Module dev

Source
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

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
ConnectionInfo
HTTP connection information.
Decompress__compress
Extensions
A type map for request extensions.
Path
Resource path match information.
PeerAddr
Extractor for peer’s socket address.
Readlines
Stream that reads request line by line.
RequestHead
ResourceDef
Describes the set of paths that match to a resource.
ResourceMap
Response
An HTTP response.
ResponseHead
Server
General purpose TCP server that runs services receiving Tokio TcpStreams.
ServerHandle
Server handle.
ServiceRequest
A service level request wrapper.
ServiceResponse
A service level response wrapper.
Url
UrlEncoded
Future that resolves to some T when parsed from a URL encoded payload.
WebService

Enums§

JsonBody
Future that resolves to some T when parsed from a JSON payload.
Payload
A streaming payload.

Traits§

HttpServiceFactory
ResourcePath
Service
An asynchronous operation from Request to a Response.
ServiceFactory
Factory for creating Services.
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 a Service