91 91 | })
|
92 92 | /* ServerHttpBoundProtocolGenerator.kt:412 */
|
93 93 | }
|
94 94 |
|
95 95 | /* RustType.kt:534 */
|
96 96 | #[allow(clippy::unnecessary_wraps)]
|
97 97 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
98 98 | pub fn ser_malformed_long_http_response(
|
99 99 | #[allow(unused_variables)] output: crate::output::MalformedLongOutput,
|
100 100 | ) -> std::result::Result<
|
101 101 | ::aws_smithy_legacy_http_server::response::Response,
|
102 102 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
|
103 103 | > {
|
104 104 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
105 105 | Ok({
|
106 106 | /* RustType.kt:534 */
|
107 107 | #[allow(unused_mut)]
|
108 108 | /* ServerHttpBoundProtocolGenerator.kt:551 */
|
109 109 | let mut builder = ::http::Response::builder();
|
110 110 | /* ServerHttpBoundProtocolGenerator.kt:647 */
|
111 111 | builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
|
112 112 | builder,
|
113 113 | ::http::header::CONTENT_TYPE,
|
114 114 | "application/json",
|
115 115 | );
|
116 116 | /* ServerHttpBoundProtocolGenerator.kt:732 */
|
117 117 | let http_status: u16 = 200;
|
118 118 | builder = builder.status(http_status);
|
119 119 | /* ServerHttpBoundProtocolGenerator.kt:611 */
|
120 120 | let payload =
|
121 - | /* HttpBoundProtocolPayloadGenerator.kt:233 */""
|
121 + | /* HttpBoundProtocolPayloadGenerator.kt:238 */""
|
122 122 | /* ServerHttpBoundProtocolGenerator.kt:611 */;
|
123 123 | /* ServerHttpBoundProtocolGenerator.kt:713 */
|
124 124 | let content_length = payload.len();
|
125 125 | builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
|
126 126 | builder,
|
127 127 | ::http::header::CONTENT_LENGTH,
|
128 128 | content_length,
|
129 129 | );
|
130 130 | /* ServerHttpBoundProtocolGenerator.kt:617 */
|
131 131 | let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
|
132 132 | /* ServerHttpBoundProtocolGenerator.kt:625 */
|
133 133 | builder.body(body)?
|
134 134 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
135 135 | })
|
136 136 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
137 137 | }
|
138 138 |
|
139 139 | /* RustType.kt:534 */
|
140 140 | #[allow(clippy::unnecessary_wraps)]
|
141 141 | /* ServerHttpBoundProtocolGenerator.kt:475 */
|
142 142 | pub fn ser_malformed_long_http_error(
|
143 143 | error: &crate::error::MalformedLongError,
|
144 144 | ) -> std::result::Result<
|
145 145 | ::aws_smithy_legacy_http_server::response::Response,
|
146 146 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
|
147 147 | > {
|
148 148 | /* ServerHttpBoundProtocolGenerator.kt:480 */
|
149 149 | Ok({
|
150 150 | /* ServerHttpBoundProtocolGenerator.kt:496 */
|
151 151 | match error {
|