You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs for the aws_smithy_http_server::layer module explicitly mention that layers within it should wrap the router; it wouldn't hurt to link to A position middleware in the Rust book.
Our Pokemon service example applies
AlbHealthCheckLayer
in B position after routing. This is a bad example because health checks should run before routing, since typically they should not be modelled.Docs for the
aws_smithy_http_server::layer
module explicitly mention that layers within it should wrap the router; it wouldn't hurt to link to A position middleware in the Rust book.This appears to be a regression. When we created the module in #2865 the example worked as intended but when we introduced the generated config object we messed it up.
The text was updated successfully, but these errors were encountered: