52 52 | }
|
53 53 |
|
54 54 | /* RustType.kt:534 */
|
55 55 | #[allow(clippy::unnecessary_wraps)]
|
56 56 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
57 57 | pub fn ser_null_and_empty_headers_client_http_response(
|
58 58 | #[allow(unused_variables)] output: crate::output::NullAndEmptyHeadersClientOutput,
|
59 59 | ) -> std::result::Result<
|
60 60 | ::aws_smithy_http_server::response::Response,
|
61 61 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
|
62 62 | > {
|
63 63 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
64 64 | Ok({
|
65 65 | /* RustType.kt:534 */
|
66 66 | #[allow(unused_mut)]
|
67 67 | /* ServerHttpBoundProtocolGenerator.kt:551 */
|
68 68 | let mut builder = ::http_1x::Response::builder();
|
69 69 | /* ServerHttpBoundProtocolGenerator.kt:679 */
|
70 70 | builder = crate::protocol_serde::shape_null_and_empty_headers_client::ser_null_and_empty_headers_client_headers(&output, builder)?;
|
71 71 | /* ServerHttpBoundProtocolGenerator.kt:647 */
|
72 72 | builder = ::aws_smithy_http::header::set_response_header_if_absent(
|
73 73 | builder,
|
74 74 | ::http_1x::header::CONTENT_TYPE,
|
75 75 | "application/json",
|
76 76 | );
|
77 77 | /* ServerHttpBoundProtocolGenerator.kt:732 */
|
78 78 | let http_status: u16 = 200;
|
79 79 | builder = builder.status(http_status);
|
80 80 | /* ServerHttpBoundProtocolGenerator.kt:611 */
|
81 81 | let payload =
|
82 - | /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_null_and_empty_headers_client_output::ser_null_and_empty_headers_client_output_output_output(&output)?
|
82 + | /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_null_and_empty_headers_client_output::ser_null_and_empty_headers_client_output_output_output(&output)?
|
83 83 | /* ServerHttpBoundProtocolGenerator.kt:611 */;
|
84 84 | /* ServerHttpBoundProtocolGenerator.kt:713 */
|
85 85 | let content_length = payload.len();
|
86 86 | builder = ::aws_smithy_http::header::set_response_header_if_absent(
|
87 87 | builder,
|
88 88 | ::http_1x::header::CONTENT_LENGTH,
|
89 89 | content_length,
|
90 90 | );
|
91 91 | /* ServerHttpBoundProtocolGenerator.kt:617 */
|
92 92 | let body = ::aws_smithy_http_server::body::to_boxed(payload);
|
93 93 | /* ServerHttpBoundProtocolGenerator.kt:625 */
|
94 94 | builder.body(body)?
|
95 95 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
96 96 | })
|
97 97 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
98 98 | }
|
99 99 |
|
100 100 | /* HttpBindingGenerator.kt:565 */
|
101 101 | pub fn ser_null_and_empty_headers_client_headers(
|
102 102 | input: &crate::output::NullAndEmptyHeadersClientOutput,
|
103 103 | mut builder: ::http_1x::response::Builder,
|
104 104 | ) -> std::result::Result<
|
105 105 | ::http_1x::response::Builder,
|
106 106 | ::aws_smithy_types::error::operation::BuildError,
|
107 107 | > {
|
108 108 | /* HttpBindingGenerator.kt:615 */
|
109 109 | if let ::std::option::Option::Some(inner_1) = &input.a {
|
110 110 | /* HttpBindingGenerator.kt:727 */
|
111 111 | let formatted_2 = inner_1.as_str();
|
112 112 | /* HttpBindingGenerator.kt:728 */
|