Server Test

Server Test

rev. 68328d957380de11b79ab4063ea76205e4a95390 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk/rust-server-codegen/src/protocol_serde/shape_stream_pokemon_radio_output.rs

@@ -1,1 +15,15 @@
    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_data_http_payload(
    4      4   
    payload: ::aws_smithy_types::byte_stream::ByteStream,
    5      5   
) -> ::std::result::Result<
    6      6   
    ::aws_smithy_types::byte_stream::ByteStream,
    7      7   
    ::aws_smithy_types::error::operation::BuildError,
    8      8   
> {
    9         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
           9  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   10     10   
    Ok(
   11         -
        /* HttpBoundProtocolPayloadGenerator.kt:372 */
   12         -
        payload, /* HttpBoundProtocolPayloadGenerator.kt:343 */
          11  +
        /* HttpBoundProtocolPayloadGenerator.kt:377 */
          12  +
        payload, /* HttpBoundProtocolPayloadGenerator.kt:348 */
   13     13   
    )
   14         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          14  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   15     15   
}

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

@@ -367,367 +427,427 @@
  387    387   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  388    388   
            builder,
  389    389   
            ::http::header::CONTENT_TYPE,
  390    390   
            "application/json",
  391    391   
        );
  392    392   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  393    393   
        let http_status: u16 = 200;
  394    394   
        builder = builder.status(http_status);
  395    395   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  396    396   
        let payload =
  397         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         397  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  398    398   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  399    399   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  400    400   
        let content_length = payload.len();
  401    401   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  402    402   
            builder,
  403    403   
            ::http::header::CONTENT_LENGTH,
  404    404   
            content_length,
  405    405   
        );
  406    406   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  407    407   
        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_constant_and_variable_query_string.rs

@@ -59,59 +105,105 @@
   79     79   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   80     80   
            builder,
   81     81   
            ::http::header::CONTENT_TYPE,
   82     82   
            "application/json",
   83     83   
        );
   84     84   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   85     85   
        let http_status: u16 = 200;
   86     86   
        builder = builder.status(http_status);
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   88     88   
        let payload =
   89         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          89  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   90     90   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   91     91   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   92     92   
        let content_length = payload.len();
   93     93   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   94     94   
            builder,
   95     95   
            ::http::header::CONTENT_LENGTH,
   96     96   
            content_length,
   97     97   
        );
   98     98   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   99     99   
        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_constant_query_string.rs

@@ -55,55 +115,115 @@
   75     75   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   76     76   
            builder,
   77     77   
            ::http::header::CONTENT_TYPE,
   78     78   
            "application/json",
   79     79   
        );
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   81     81   
        let http_status: u16 = 200;
   82     82   
        builder = builder.status(http_status);
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   84     84   
        let payload =
   85         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          85  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   88     88   
        let content_length = payload.len();
   89     89   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   90     90   
            builder,
   91     91   
            ::http::header::CONTENT_LENGTH,
   92     92   
            content_length,
   93     93   
        );
   94     94   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   95     95   
        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_content_type_parameters.rs

@@ -48,48 +108,108 @@
   68     68   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http::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_content_type_parameters_output::ser_content_type_parameters_output_output_output(&output)?
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_content_type_parameters_output::ser_content_type_parameters_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_legacy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        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_datetime_offsets.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_datetime_offsets_output::ser_datetime_offsets_output_output_output(&output)?
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_datetime_offsets_output::ser_datetime_offsets_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_document_type.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_document_type_output::ser_document_type_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_document_type_output::ser_document_type_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_document_type_as_map_value.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_document_type_as_map_value_output::ser_document_type_as_map_value_output_output_output(&output)?
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_document_type_as_map_value_output::ser_document_type_as_map_value_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_document_type_as_payload.rs

@@ -47,47 +93,93 @@
   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:348 */crate::protocol_serde::shape_document_type_as_payload_output::ser_document_value_http_payload(& output.document_value)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_document_type_as_payload_output::ser_document_value_http_payload(& output.document_value)?
   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_document_type_as_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_document_value_http_payload(
    4      4   
    payload: &::std::option::Option<::aws_smithy_types::Document>,
    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.as_ref() {
    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:391 */
   19         -
        crate::protocol_serde::serialize_document(payload), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:396 */
          19  +
        crate::protocol_serde::serialize_document(payload), /* 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_empty_input_and_empty_output.rs

@@ -32,32 +78,78 @@
   52     52   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   53     53   
            builder,
   54     54   
            ::http::header::CONTENT_TYPE,
   55     55   
            "application/json",
   56     56   
        );
   57     57   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   58     58   
        let http_status: u16 = 200;
   59     59   
        builder = builder.status(http_status);
   60     60   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   61     61   
        let payload =
   62         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_empty_input_and_empty_output_output::ser_empty_input_and_empty_output_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_empty_input_and_empty_output_output::ser_empty_input_and_empty_output_output_output_output(&output)?
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   65     65   
        let content_length = payload.len();
   66     66   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   67     67   
            builder,
   68     68   
            ::http::header::CONTENT_LENGTH,
   69     69   
            content_length,
   70     70   
        );
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   72     72   
        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_endpoint_operation.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:233 */""
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   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_endpoint_with_host_label_operation.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:233 */""
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   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_fractional_seconds.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_fractional_seconds_output::ser_fractional_seconds_output_output_output(&output)?
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_fractional_seconds_output::ser_fractional_seconds_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_greeting_with_errors.rs

@@ -41,41 +101,101 @@
   61     61   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   62     62   
            builder,
   63     63   
            ::http::header::CONTENT_TYPE,
   64     64   
            "application/json",
   65     65   
        );
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   67     67   
        let http_status: u16 = 200;
   68     68   
        builder = builder.status(http_status);
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   70     70   
        let payload =
   71         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_greeting_with_errors_output::ser_greeting_with_errors_output_output_output(&output)?
          71  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_greeting_with_errors_output::ser_greeting_with_errors_output_output_output(&output)?
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   74     74   
        let content_length = payload.len();
   75     75   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   76     76   
            builder,
   77     77   
            ::http::header::CONTENT_LENGTH,
   78     78   
            content_length,
   79     79   
        );
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   81     81   
        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_host_with_path_operation.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:233 */""
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   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);