Server Test

Server Test

rev. 68328d957380de11b79ab4063ea76205e4a95390

Files changed:

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_json_int_enums.rs

@@ -50,50 +110,110 @@
   70     70   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http_1x::header::CONTENT_TYPE,
   73     73   
            "application/json",
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   76     76   
        let http_status: u16 = 200;
   77     77   
        builder = builder.status(http_status);
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   79     79   
        let payload =
   80         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_json_int_enums_output::ser_json_int_enums_output_output_output(&output)?
          80  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_int_enums_output::ser_json_int_enums_output_output_output(&output)?
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   83     83   
        let content_length = payload.len();
   84     84   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   85     85   
            builder,
   86     86   
            ::http_1x::header::CONTENT_LENGTH,
   87     87   
            content_length,
   88     88   
        );
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   90     90   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_json_lists.rs

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_json_lists_output::ser_json_lists_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_lists_output::ser_json_lists_output_output_output(&output)?
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   80     80   
        let content_length = payload.len();
   81     81   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_json_maps.rs

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_json_maps_output::ser_json_maps_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_maps_output::ser_json_maps_output_output_output(&output)?
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   80     80   
        let content_length = payload.len();
   81     81   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_json_timestamps.rs

@@ -50,50 +110,110 @@
   70     70   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http_1x::header::CONTENT_TYPE,
   73     73   
            "application/json",
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   76     76   
        let http_status: u16 = 200;
   77     77   
        builder = builder.status(http_status);
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   79     79   
        let payload =
   80         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_json_timestamps_output::ser_json_timestamps_output_output_output(&output)?
          80  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_timestamps_output::ser_json_timestamps_output_output_output(&output)?
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   83     83   
        let content_length = payload.len();
   84     84   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   85     85   
            builder,
   86     86   
            ::http_1x::header::CONTENT_LENGTH,
   87     87   
            content_length,
   88     88   
        );
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   90     90   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_json_unions.rs

@@ -48,48 +108,108 @@
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_TYPE,
   71     71   
            "application/json",
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   74     74   
        let http_status: u16 = 200;
   75     75   
        builder = builder.status(http_status);
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   77     77   
        let payload =
   78         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_json_unions_output::ser_json_unions_output_output_output(&output)?
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_unions_output::ser_json_unions_output_output_output(&output)?
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http_1x::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_body.rs

@@ -34,34 +80,80 @@
   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:235 */crate::protocol_serde::shape_malformed_accept_with_body_output::ser_malformed_accept_with_body_output_output_output(&output)?
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_malformed_accept_with_body_output::ser_malformed_accept_with_body_output_output_output(&output)?
   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);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_generic_string.rs

@@ -35,35 +81,81 @@
   55     55   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   56     56   
            builder,
   57     57   
            ::http_1x::header::CONTENT_TYPE,
   58     58   
            "text/plain",
   59     59   
        );
   60     60   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   61     61   
        let http_status: u16 = 200;
   62     62   
        builder = builder.status(http_status);
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   64     64   
        let payload =
   65         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_malformed_accept_with_generic_string_output::ser_payload_http_payload( output.payload)?
          65  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_malformed_accept_with_generic_string_output::ser_payload_http_payload( output.payload)?
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   68     68   
        let content_length = payload.len();
   69     69   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   70     70   
            builder,
   71     71   
            ::http_1x::header::CONTENT_LENGTH,
   72     72   
            content_length,
   73     73   
        );
   74     74   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   75     75   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_generic_string_output.rs

@@ -1,1 +22,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/* HttpBoundProtocolPayloadGenerator.kt:309 */
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:314 */
    3      3   
pub fn ser_payload_http_payload(
    4      4   
    payload: ::std::option::Option<::std::string::String>,
    5      5   
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    6         -
    /* HttpBoundProtocolPayloadGenerator.kt:318 */
           6  +
    /* HttpBoundProtocolPayloadGenerator.kt:323 */
    7      7   
    let payload = match payload {
    8      8   
        Some(t) => t,
    9      9   
        None => {
   10     10   
            return Ok(
   11         -
                /* HttpBoundProtocolPayloadGenerator.kt:330 */
   12         -
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:335 */
          12  +
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:364 */
   19         -
        payload.into_bytes(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:369 */
          19  +
        payload.into_bytes(), /* HttpBoundProtocolPayloadGenerator.kt:348 */
   20     20   
    )
   21         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          21  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   22     22   
}

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_payload.rs

@@ -34,34 +80,80 @@
   54     54   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   55     55   
            builder,
   56     56   
            ::http_1x::header::CONTENT_TYPE,
   57     57   
            "image/jpeg",
   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:348 */crate::protocol_serde::shape_malformed_accept_with_payload_output::ser_payload_http_payload( output.payload)?
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_malformed_accept_with_payload_output::ser_payload_http_payload( output.payload)?
   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);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_payload_output.rs

@@ -1,1 +22,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
/* HttpBoundProtocolPayloadGenerator.kt:309 */
           2  +
/* HttpBoundProtocolPayloadGenerator.kt:314 */
    3      3   
pub fn ser_payload_http_payload(
    4      4   
    payload: ::std::option::Option<::aws_smithy_types::Blob>,
    5      5   
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    6         -
    /* HttpBoundProtocolPayloadGenerator.kt:318 */
           6  +
    /* HttpBoundProtocolPayloadGenerator.kt:323 */
    7      7   
    let payload = match payload {
    8      8   
        Some(t) => t,
    9      9   
        None => {
   10     10   
            return Ok(
   11         -
                /* HttpBoundProtocolPayloadGenerator.kt:330 */
   12         -
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:335 */
          12  +
                Vec::new(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:375 */
   19         -
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:380 */
          19  +
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:348 */
   20     20   
    )
   21         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          21  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   22     22   
}

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_blob.rs

@@ -50,50 +110,110 @@
   70     70   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http_1x::header::CONTENT_TYPE,
   73     73   
            "application/json",
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   76     76   
        let http_status: u16 = 200;
   77     77   
        builder = builder.status(http_status);
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   79     79   
        let payload =
   80         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          80  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   83     83   
        let content_length = payload.len();
   84     84   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   85     85   
            builder,
   86     86   
            ::http_1x::header::CONTENT_LENGTH,
   87     87   
            content_length,
   88     88   
        );
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   90     90   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_boolean.rs

@@ -98,98 +158,158 @@
  118    118   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  119    119   
            builder,
  120    120   
            ::http_1x::header::CONTENT_TYPE,
  121    121   
            "application/json",
  122    122   
        );
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  124    124   
        let http_status: u16 = 200;
  125    125   
        builder = builder.status(http_status);
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  127    127   
        let payload =
  128         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         128  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  129    129   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  130    130   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  131    131   
        let content_length = payload.len();
  132    132   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  133    133   
            builder,
  134    134   
            ::http_1x::header::CONTENT_LENGTH,
  135    135   
            content_length,
  136    136   
        );
  137    137   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  138    138   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_byte.rs

@@ -94,94 +154,154 @@
  114    114   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  115    115   
            builder,
  116    116   
            ::http_1x::header::CONTENT_TYPE,
  117    117   
            "application/json",
  118    118   
        );
  119    119   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  120    120   
        let http_status: u16 = 200;
  121    121   
        builder = builder.status(http_status);
  122    122   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  123    123   
        let payload =
  124         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         124  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  125    125   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  127    127   
        let content_length = payload.len();
  128    128   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  129    129   
            builder,
  130    130   
            ::http_1x::header::CONTENT_LENGTH,
  131    131   
            content_length,
  132    132   
        );
  133    133   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  134    134   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_content_type_with_body.rs

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   80     80   
        let content_length = payload.len();
   81     81   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_content_type_with_generic_string.rs

@@ -49,49 +95,95 @@
   69     69   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   70     70   
            builder,
   71     71   
            ::http_1x::header::CONTENT_TYPE,
   72     72   
            "application/json",
   73     73   
        );
   74     74   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   75     75   
        let http_status: u16 = 200;
   76     76   
        builder = builder.status(http_status);
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   78     78   
        let payload =
   79         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          79  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   82     82   
        let content_length = payload.len();
   83     83   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   84     84   
            builder,
   85     85   
            ::http_1x::header::CONTENT_LENGTH,
   86     86   
            content_length,
   87     87   
        );
   88     88   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   89     89   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_malformed_content_type_with_payload.rs

@@ -48,48 +94,94 @@
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_TYPE,
   71     71   
            "application/json",
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   74     74   
        let http_status: u16 = 200;
   75     75   
        builder = builder.status(http_status);
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   77     77   
        let payload =
   78         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http_1x::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);