3 3 | body: &mut ::aws_smithy_types::body::SdkBody,
|
4 4 | ) -> std::result::Result<
|
5 5 | crate::event_receiver::EventReceiver<
|
6 6 | crate::types::InvokeWithResponseStreamResponseEvent,
|
7 7 | crate::types::error::InvokeWithResponseStreamResponseEventError,
|
8 8 | >,
|
9 9 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError,
|
10 10 | > {
|
11 11 | let unmarshaller = crate::event_stream_serde::InvokeWithResponseStreamResponseEventUnmarshaller::new();
|
12 12 | let body = std::mem::replace(body, ::aws_smithy_types::body::SdkBody::taken());
|
13 - | Ok(crate::event_receiver::EventReceiver::new(::aws_smithy_http::event_stream::Receiver::new(
|
14 - | unmarshaller,
|
15 - | body,
|
16 - | )))
|
13 + | let receiver = crate::event_receiver::EventReceiver::new(::aws_smithy_http::event_stream::Receiver::new(unmarshaller, body));
|
14 + | Ok(receiver)
|
17 15 | }
|
18 16 |
|
19 17 | pub(crate) fn de_executed_version_header(
|
20 18 | header_map: &::aws_smithy_runtime_api::http::Headers,
|
21 19 | ) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
|
22 20 | let headers = header_map.get_all("X-Amz-Executed-Version");
|
23 21 | ::aws_smithy_http::header::one_or_none(headers)
|
24 22 | }
|
25 23 |
|
26 24 | pub(crate) fn de_response_stream_content_type_header(
|