Module handler

Module handler 

Source
Expand description

type based high level async function service.

Modules§

body
type extractor for request body stream.
cookie
type extractor and responder for cookies.
extension
type extractor for value from Extensions and itself.
form
header
type extractor for header value
html
response generator for Html
json
type extractor and response generator for json
multipart
params
type extractor for uri params.
path
type extractor for request uri path
query
type extractor for request uri query
redirect
type responder for http redirecting response.
state
type extractor or application state.
text
type extractor, responder and service for text
uri
websocket

Traits§

FromRequest
Extract type from Req asynchronously and receive them with function passed to handler_service.
Responder
Make Response with ownership of Req. The Output type is what returns from handler_service function.

Functions§

handler_service
A service factory shortcut offering given async function ability to use FromRequest to destruct and transform Service<Req>’s Req type and receive them as function argument.
handler_sync_service
synchronous version of handler_service