Skip to main content

dispatch

Function dispatch 

Source
pub async fn dispatch(
    handler: &dyn CloudFrontHandler,
    route: RouteMatch,
    uri: &Uri,
    _headers: &HeaderMap,
    if_match: Option<&str>,
    body: Bytes,
    request_id: &str,
) -> Response<HttpBody>
Expand description

Dispatch a parsed route to the provider and produce an HTTP response.