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": "Decrease generated client artifact sizes by reducing the number of suspension points for operations and inlining commonly used HTTP builders"
Copy file name to clipboardExpand all lines: codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/AwsQuery.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ class AwsQuery : QueryHttpBindingProtocolGenerator() {
45
45
writer:KotlinWriter,
46
46
) {
47
47
writer.write("""checkNotNull(payload){ "unable to parse error from empty response" }""")
Copy file name to clipboardExpand all lines: codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/Ec2Query.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ class Ec2Query : QueryHttpBindingProtocolGenerator() {
40
40
writer:KotlinWriter,
41
41
) {
42
42
writer.write("""checkNotNull(payload){ "unable to parse error from empty response" }""")
Copy file name to clipboardExpand all lines: codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/RestXml.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ open class RestXml : AwsHttpBindingProtocolGenerator() {
63
63
writer:KotlinWriter,
64
64
) {
65
65
writer.write("""checkNotNull(payload){ "unable to parse error from empty response" }""")
Copy file name to clipboardExpand all lines: codegen/smithy-aws-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/aws/protocols/core/AwsHttpBindingProtocolGenerator.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -84,10 +84,11 @@ abstract class AwsHttpBindingProtocolGenerator : HttpBindingProtocolGenerator()
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpBindingProtocolGenerator.kt
+83-40Lines changed: 83 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ abstract class HttpBindingProtocolGenerator : ProtocolGenerator {
77
77
* The function should have the following signature:
78
78
*
79
79
* ```
80
-
* suspend fun throwFooOperationError(context: ExecutionContext, call: HttpCall): Nothing {
80
+
* fun throwFooOperationError(context: ExecutionContext, call: HttpCall, payload: ByteArray?): Nothing {
81
81
* <-- CURRENT WRITER CONTEXT -->
82
82
* }
83
83
* ```
@@ -169,20 +169,25 @@ abstract class HttpBindingProtocolGenerator : ProtocolGenerator {
169
169
val operationSerializerSymbols =setOf(
170
170
RuntimeTypes.Http.HttpBody,
171
171
RuntimeTypes.Http.HttpMethod,
172
-
RuntimeTypes.HttpClient.Operation.HttpSerialize,
173
-
RuntimeTypes.Http.Request.HttpRequestBuilder,
174
172
RuntimeTypes.Http.Request.url,
175
173
)
174
+
175
+
val serdeMeta =HttpSerdeMeta(op.isInputEventStream(ctx.model))
0 commit comments