Skip to content
Unverified Commit e74ecf34 authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Simplify implementation of rendering prefix headers (#1841)

The implementation that binds the target of
`@httpPrefixHeaders`-annotated member shapes is overly complex in that
it accounts for the possibility of it targeting a list shape. However,
`@httpPrefixHeaders` can only be applied to structure members targeting
map shapes:

* https://awslabs.github.io/smithy/1.0/spec/core/http-traits.html#httpprefixheaders-trait
* https://awslabs.github.io/smithy/2.0/spec/http-bindings.html#httpprefixheaders-trait

The existing implementation likely came to be by copy-pasting the
`RustWriter.renderHeaders` extension function.

I've also taken the liberty of reformatting and renaming variables for
clarity and consistency.
parent b4f0b28b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment