44 44 | })
|
45 45 | /* ServerHttpBoundProtocolGenerator.kt:412 */
|
46 46 | }
|
47 47 |
|
48 48 | /* RustType.kt:534 */
|
49 49 | #[allow(clippy::unnecessary_wraps)]
|
50 50 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
51 51 | pub fn ser_operation_with_nested_structure_http_response(
|
52 52 | #[allow(unused_variables)] output: crate::output::OperationWithNestedStructureOutput,
|
53 53 | ) -> std::result::Result<
|
54 54 | ::aws_smithy_legacy_http_server::response::Response,
|
55 55 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
|
56 56 | > {
|
57 57 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
58 58 | Ok({
|
59 59 | /* RustType.kt:534 */
|
60 60 | #[allow(unused_mut)]
|
61 61 | /* ServerHttpBoundProtocolGenerator.kt:551 */
|
62 62 | let mut builder = ::http::Response::builder();
|
63 63 | /* ServerHttpBoundProtocolGenerator.kt:647 */
|
64 64 | builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
|
65 65 | builder,
|
66 66 | ::http::header::CONTENT_TYPE,
|
67 67 | "application/json",
|
68 68 | );
|
69 69 | /* ServerHttpBoundProtocolGenerator.kt:732 */
|
70 70 | let http_status: u16 = 200;
|
71 71 | builder = builder.status(http_status);
|
72 72 | /* ServerHttpBoundProtocolGenerator.kt:611 */
|
73 73 | let payload =
|
74 - | /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_operation_with_nested_structure_output::ser_operation_with_nested_structure_output_output_output(&output)?
|
74 + | /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_operation_with_nested_structure_output::ser_operation_with_nested_structure_output_output_output(&output)?
|
75 75 | /* ServerHttpBoundProtocolGenerator.kt:611 */;
|
76 76 | /* ServerHttpBoundProtocolGenerator.kt:713 */
|
77 77 | let content_length = payload.len();
|
78 78 | builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
|
79 79 | builder,
|
80 80 | ::http::header::CONTENT_LENGTH,
|
81 81 | content_length,
|
82 82 | );
|
83 83 | /* ServerHttpBoundProtocolGenerator.kt:617 */
|
84 84 | let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
|
85 85 | /* ServerHttpBoundProtocolGenerator.kt:625 */
|
86 86 | builder.body(body)?
|
87 87 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
88 88 | })
|
89 89 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
90 90 | }
|
91 91 |
|
92 92 | /* RustType.kt:534 */
|
93 93 | #[allow(clippy::unnecessary_wraps)]
|
94 94 | /* ServerHttpBoundProtocolGenerator.kt:475 */
|
95 95 | pub fn ser_operation_with_nested_structure_http_error(
|
96 96 | error: &crate::error::OperationWithNestedStructureError,
|
97 97 | ) -> std::result::Result<
|
98 98 | ::aws_smithy_legacy_http_server::response::Response,
|
99 99 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
|
100 100 | > {
|
101 101 | /* ServerHttpBoundProtocolGenerator.kt:480 */
|
102 102 | Ok({
|
103 103 | /* ServerHttpBoundProtocolGenerator.kt:496 */
|
104 104 | match error {
|