Crate aws_smithy_http_server
source ·Expand description
HTTP server runtime and utilities, loosely based on axum.
Modules§
- HTTP body utilities.
- Extension types.
- Provides
InstrumentOperationand a variety of helpers structures for dealing with sensitive data. Together they allow compliance with the sensitive trait. - The shape of a Smithy operation is modelled by the
OperationShapetrait. Its associated typesOperationShape::Input,OperationShape::Output, andOperationShape::Errormap to the structures representing the Smithy inputs, outputs, and errors respectively. When an operation error is not specifiedOperationShape::ErrorisInfallible. - The plugin system allows you to build middleware with an awareness of the operation it is applied to.
- Types and traits for extracting data from requests.
- HTTP routing that adheres to the Smithy specification.
- The shape of a Smithy service is modelled by the
ServiceShapetrait. Its associated typesServiceShape::ID,ServiceShape::VERSION,ServiceShape::Protocol, andServiceShape::Operationsmap to the services Shape ID, the version field, the applied protocol trait (seeprotocolmodule), and the operations field. - A
ShapeIdrepresents a Smithy Shape ID.
Macros§
- A macro to help with scoping plugins to a subset of all operations.
Structs§
- Middleware for adding some shareable value to request extensions.
Layerfor adding some shareable value to request extensions.- Generic extension type stored in and extracted from request extensions.