Expand description
HTTP server runtime and utilities, loosely based on axum.
Modules§
- body
- HTTP body utilities.
- extension
- Extension types.
- instrumentation
- Provides
InstrumentOperation
and a variety of helpers structures for dealing with sensitive data. Together they allow compliance with the sensitive trait. - layer
- This module hosts
Layer
s that are generally meant to be applied around theRouter
, so they are enacted before a request is routed. - operation
- The shape of a Smithy operation is modelled by the
OperationShape
trait. Its associated typesOperationShape::Input
,OperationShape::Output
, andOperationShape::Error
map to the structures representing the Smithy inputs, outputs, and errors respectively. When an operation error is not specifiedOperationShape::Error
isInfallible
. - plugin
- The plugin system allows you to build middleware with an awareness of the operation it is applied to.
- request
- Types and traits for extracting data from requests.
- routing
- HTTP routing that adheres to the Smithy specification.
- service
- The shape of a Smithy service is modelled by the
ServiceShape
trait. Its associated typesServiceShape::ID
,ServiceShape::VERSION
,ServiceShape::Protocol
, andServiceShape::Operations
map to the services Shape ID, the version field, the applied protocol trait (seeprotocol
module), and the operations field. - shape_
id - A
ShapeId
represents a Smithy Shape ID.
Macros§
Structs§
- AddExtension
- Middleware for adding some shareable value to request extensions.
- AddExtension
Layer - [
Layer
] for adding some shareable value to request extensions. - Extension
- Generic extension type stored in and extracted from request extensions.