Server Test

Server Test

rev. 68328d957380de11b79ab4063ea76205e4a95390

Files changed:

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

@@ -130,130 +190,190 @@
  150    150   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  151    151   
            builder,
  152    152   
            ::http::header::CONTENT_TYPE,
  153    153   
            "application/json",
  154    154   
        );
  155    155   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  156    156   
        let http_status: u16 = 200;
  157    157   
        builder = builder.status(http_status);
  158    158   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  159    159   
        let payload =
  160         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         160  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  161    161   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  162    162   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  163    163   
        let content_length = payload.len();
  164    164   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  165    165   
            builder,
  166    166   
            ::http::header::CONTENT_LENGTH,
  167    167   
            content_length,
  168    168   
        );
  169    169   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  170    170   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -123,123 +183,183 @@
  143    143   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  144    144   
            builder,
  145    145   
            ::http::header::CONTENT_TYPE,
  146    146   
            "application/json",
  147    147   
        );
  148    148   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  149    149   
        let http_status: u16 = 200;
  150    150   
        builder = builder.status(http_status);
  151    151   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  152    152   
        let payload =
  153         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         153  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  154    154   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  155    155   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  156    156   
        let content_length = payload.len();
  157    157   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  158    158   
            builder,
  159    159   
            ::http::header::CONTENT_LENGTH,
  160    160   
            content_length,
  161    161   
        );
  162    162   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  163    163   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -58,58 +118,118 @@
   78     78   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http::header::CONTENT_TYPE,
   81     81   
            "application/json",
   82     82   
        );
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   84     84   
        let http_status: u16 = 200;
   85     85   
        builder = builder.status(http_status);
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   87     87   
        let payload =
   88         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          88  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   90     90   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   91     91   
        let content_length = payload.len();
   92     92   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   93     93   
            builder,
   94     94   
            ::http::header::CONTENT_LENGTH,
   95     95   
            content_length,
   96     96   
        );
   97     97   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   98     98   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -40,40 +86,86 @@
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:751 */
   62     62   
        let status = output.status
   63     63   
            /* ServerHttpBoundProtocolGenerator.kt:753 */.unwrap_or(200)
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:751 */;
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:756 */
   66     66   
        let http_status: u16 = status.try_into().map_err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection::InvalidHttpStatusCode)?;
   67     67   
        builder = builder.status(http_status);
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   69     69   
        let payload =
   70         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_http_response_code_output::ser_http_response_code_output_output_output(&output)?
          70  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_http_response_code_output::ser_http_response_code_output_output_output(&output)?
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   73     73   
        let content_length = payload.len();
   74     74   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   75     75   
            builder,
   76     76   
            ::http::header::CONTENT_LENGTH,
   77     77   
            content_length,
   78     78   
        );
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   80     80   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -45,45 +91,91 @@
   65     65   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   66     66   
            builder,
   67     67   
            ::http::header::CONTENT_TYPE,
   68     68   
            "text/plain",
   69     69   
        );
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   71     71   
        let http_status: u16 = 200;
   72     72   
        builder = builder.status(http_status);
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   74     74   
        let payload =
   75         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_http_string_payload_output::ser_payload_http_payload( output.payload)?
          75  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_string_payload_output::ser_payload_http_payload( output.payload)?
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   78     78   
        let content_length = payload.len();
   79     79   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   80     80   
            builder,
   81     81   
            ::http::header::CONTENT_LENGTH,
   82     82   
            content_length,
   83     83   
        );
   84     84   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   85     85   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_http_string_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<::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-http0x/rust-server-codegen/src/protocol_serde/shape_ignore_query_params_in_response.rs

@@ -36,36 +82,82 @@
   56     56   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_TYPE,
   59     59   
            "application/json",
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   62     62   
        let http_status: u16 = 200;
   63     63   
        builder = builder.status(http_status);
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   65     65   
        let payload =
   66         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_ignore_query_params_in_response_output::ser_ignore_query_params_in_response_output_output_output(&output)?
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_ignore_query_params_in_response_output::ser_ignore_query_params_in_response_output_output_output(&output)?
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   69     69   
        let content_length = payload.len();
   70     70   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -118,118 +178,178 @@
  138    138   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  139    139   
            builder,
  140    140   
            ::http::header::CONTENT_TYPE,
  141    141   
            "application/json",
  142    142   
        );
  143    143   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  144    144   
        let http_status: u16 = 200;
  145    145   
        builder = builder.status(http_status);
  146    146   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  147    147   
        let payload =
  148         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_input_and_output_with_headers_output::ser_input_and_output_with_headers_output_output_output(&output)?
         148  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_input_and_output_with_headers_output::ser_input_and_output_with_headers_output_output_output(&output)?
  149    149   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  150    150   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  151    151   
        let content_length = payload.len();
  152    152   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  153    153   
            builder,
  154    154   
            ::http::header::CONTENT_LENGTH,
  155    155   
            content_length,
  156    156   
        );
  157    157   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  158    158   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -44,44 +104,104 @@
   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_json_blobs_output::ser_json_blobs_output_output_output(&output)?
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_blobs_output::ser_json_blobs_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);

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

@@ -44,44 +104,104 @@
   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_json_enums_output::ser_json_enums_output_output_output(&output)?
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_enums_output::ser_json_enums_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);

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

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http::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_int_enums_output::ser_json_int_enums_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_int_enums_output::ser_json_int_enums_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_legacy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -44,44 +104,104 @@
   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_json_lists_output::ser_json_lists_output_output_output(&output)?
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_lists_output::ser_json_lists_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);

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

@@ -44,44 +104,104 @@
   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_json_maps_output::ser_json_maps_output_output_output(&output)?
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_maps_output::ser_json_maps_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);

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

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http::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_timestamps_output::ser_json_timestamps_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_timestamps_output::ser_json_timestamps_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_legacy_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

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

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

@@ -36,36 +82,82 @@
   56     56   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_TYPE,
   59     59   
            "application/json",
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   62     62   
        let http_status: u16 = 200;
   63     63   
        builder = builder.status(http_status);
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   65     65   
        let payload =
   66         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_malformed_accept_with_body_output::ser_malformed_accept_with_body_output_output_output(&output)?
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_malformed_accept_with_body_output::ser_malformed_accept_with_body_output_output_output(&output)?
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   69     69   
        let content_length = payload.len();
   70     70   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);