Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Dispatch identified operations to the provider.

This is the “business” layer of the HTTP crate: it receives a RouteMatch, parses the request body / query, calls into the RustackCloudFront provider, and turns the domain result into an HTTP response with correct status codes and ETag/Location headers.

Traits§

CloudFrontHandler
Handler trait — exists for symmetry with other services. The built-in implementation dispatches directly to RustackCloudFront.

Functions§

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