34 34 | })
|
35 35 | /* ServerHttpBoundProtocolGenerator.kt:412 */
|
36 36 | }
|
37 37 |
|
38 38 | /* RustType.kt:534 */
|
39 39 | #[allow(clippy::unnecessary_wraps)]
|
40 40 | /* ServerHttpBoundProtocolGenerator.kt:449 */
|
41 41 | pub fn ser_malformed_content_type_without_body_http_response(
|
42 42 | #[allow(unused_variables)] output: crate::output::MalformedContentTypeWithoutBodyOutput,
|
43 43 | ) -> std::result::Result<
|
44 44 | ::aws_smithy_http_server::response::Response,
|
45 45 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
|
46 46 | > {
|
47 47 | /* ServerHttpBoundProtocolGenerator.kt:461 */
|
48 48 | Ok({
|
49 49 | /* RustType.kt:534 */
|
50 50 | #[allow(unused_mut)]
|
51 51 | /* ServerHttpBoundProtocolGenerator.kt:551 */
|
52 52 | let mut builder = ::http_1x::Response::builder();
|
53 53 | /* ServerHttpBoundProtocolGenerator.kt:647 */
|
54 54 | builder = ::aws_smithy_http::header::set_response_header_if_absent(
|
55 55 | builder,
|
56 56 | ::http_1x::header::CONTENT_TYPE,
|
57 57 | "application/json",
|
58 58 | );
|
59 59 | /* ServerHttpBoundProtocolGenerator.kt:732 */
|
60 60 | let http_status: u16 = 200;
|
61 61 | builder = builder.status(http_status);
|
62 62 | /* ServerHttpBoundProtocolGenerator.kt:611 */
|
63 63 | let payload =
|
64 - | /* HttpBoundProtocolPayloadGenerator.kt:233 */""
|
64 + | /* HttpBoundProtocolPayloadGenerator.kt:238 */""
|
65 65 | /* ServerHttpBoundProtocolGenerator.kt:611 */;
|
66 66 | /* ServerHttpBoundProtocolGenerator.kt:713 */
|
67 67 | let content_length = payload.len();
|
68 68 | builder = ::aws_smithy_http::header::set_response_header_if_absent(
|
69 69 | builder,
|
70 70 | ::http_1x::header::CONTENT_LENGTH,
|
71 71 | content_length,
|
72 72 | );
|
73 73 | /* ServerHttpBoundProtocolGenerator.kt:617 */
|
74 74 | let body = ::aws_smithy_http_server::body::to_boxed(payload);
|