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
Copy file name to clipboardExpand all lines: codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/RequestSerializerGenerator.kt
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -268,7 +268,14 @@ class RequestSerializerGenerator(
268
268
// then replace the body with the event stream and set the correct Content-Type.
Copy file name to clipboardExpand all lines: codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ResponseDeserializerGenerator.kt
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -195,11 +195,12 @@ class ResponseDeserializerGenerator(
195
195
196
196
/** Schema-serde path for event stream responses (hybrid).
197
197
*
198
-
* Mirrors the legacy builder-based pattern: create the output builder, set
199
-
* the event stream member via `set_<memberName>(Some(receiver))`, then
200
-
* build. The legacy `EventStreamUnmarshallerGenerator` handles frame-level
201
-
* unmarshalling, including initial-response data for RPC protocols (which
202
-
* arrives via the first event frame, not the HTTP body).
198
+
* Creates the output builder, sets the event stream member via
199
+
* `set_<memberName>(Some(receiver))`, then builds. `EventStreamUnmarshallerGenerator`
200
+
* (invoked here with `useSchemaSerde = true`) emits a schema-serde unmarshaller
201
+
* that uses `self.protocol.payload_codec()` to decode each event frame, and also
202
+
* handles initial-response data for RPC protocols (which arrives via the first
203
+
* event frame, not the HTTP body).
203
204
*
204
205
* Unlike the non-streaming schema path, `deserialize_with_response` is not
205
206
* used because it would call `builder.build()` internally — and for
Copy file name to clipboardExpand all lines: codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/protocols/HttpBoundProtocolGenerator.kt
0 commit comments