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
## Description
Do not parse and initialize the mime, known at compile time, on every
request.
See
#2607 (comment)
## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [ ] I have updated `CHANGELOG.next.toml` if I made changes to the
smithy-rs codegen or runtime crates
- [ ] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
---------
Signed-off-by: Daniele Ahmed <[email protected]>
Copy file name to clipboardExpand all lines: codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt
+21-1
Original file line number
Diff line number
Diff line change
@@ -178,18 +178,36 @@ class ServerHttpBoundProtocolTraitImplGenerator(
178
178
outputSymbol:Symbol,
179
179
operationShape:OperationShape,
180
180
) {
181
+
val operationName = symbolProvider.toSymbol(operationShape).name
182
+
val staticContentType ="CONTENT_TYPE_${operationName.uppercase()}"
0 commit comments