Server Test

Server Test

rev. 2613e17baabf9f07b5b1870ece26ed14bd4a641b

Files changed:

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

@@ -64,64 +110,110 @@
   84     84   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   85     85   
            builder,
   86     86   
            ::http::header::CONTENT_TYPE,
   87     87   
            "application/json",
   88     88   
        );
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   90     90   
        let http_status: u16 = 200;
   91     91   
        builder = builder.status(http_status);
   92     92   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   93     93   
        let payload =
   94         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          94  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   95     95   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   96     96   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   97     97   
        let content_length = payload.len();
   98     98   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   99     99   
            builder,
  100    100   
            ::http::header::CONTENT_LENGTH,
  101    101   
            content_length,
  102    102   
        );
  103    103   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  104    104   
        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_recursive_shapes.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_recursive_shapes_output::ser_recursive_shapes_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_recursive_shapes_output::ser_recursive_shapes_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_response_code_http_fallback.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 = 201;
   59     59   
        builder = builder.status(http_status);
   60     60   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   61     61   
        let payload =
   62         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_response_code_http_fallback_output::ser_response_code_http_fallback_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_response_code_http_fallback_output::ser_response_code_http_fallback_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_response_code_required.rs

@@ -39,39 +85,85 @@
   59     59   
            "application/json",
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:751 */
   62     62   
        let status = output.response_code
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:751 */;
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:756 */
   65     65   
        let http_status: u16 = status.try_into().map_err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection::InvalidHttpStatusCode)?;
   66     66   
        builder = builder.status(http_status);
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   68     68   
        let payload =
   69         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_response_code_required_output::ser_response_code_required_output_output_output(&output)?
          69  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_response_code_required_output::ser_response_code_required_output_output_output(&output)?
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   72     72   
        let content_length = payload.len();
   73     73   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   74     74   
            builder,
   75     75   
            ::http::header::CONTENT_LENGTH,
   76     76   
            content_length,
   77     77   
        );
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   79     79   
        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_simple_scalar_properties.rs

@@ -56,56 +116,116 @@
   76     76   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   77     77   
            builder,
   78     78   
            ::http::header::CONTENT_TYPE,
   79     79   
            "application/json",
   80     80   
        );
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   82     82   
        let http_status: u16 = 200;
   83     83   
        builder = builder.status(http_status);
   84     84   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   85     85   
        let payload =
   86         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_simple_scalar_properties_output::ser_simple_scalar_properties_output_output_output(&output)?
          86  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_simple_scalar_properties_output::ser_simple_scalar_properties_output_output_output(&output)?
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   88     88   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   89     89   
        let content_length = payload.len();
   90     90   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   91     91   
            builder,
   92     92   
            ::http::header::CONTENT_LENGTH,
   93     93   
            content_length,
   94     94   
        );
   95     95   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   96     96   
        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_sparse_json_lists.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_sparse_json_lists_output::ser_sparse_json_lists_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_sparse_json_lists_output::ser_sparse_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_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_sparse_json_maps.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_sparse_json_maps_output::ser_sparse_json_maps_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_sparse_json_maps_output::ser_sparse_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_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_streaming_traits.rs

@@ -54,54 +114,114 @@
   74     74   
            builder,
   75     75   
            ::http::header::CONTENT_TYPE,
   76     76   
            "application/octet-stream",
   77     77   
        );
   78     78   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   79     79   
        let http_status: u16 = 200;
   80     80   
        builder = builder.status(http_status);
   81     81   
        /* ServerHttpBoundProtocolGenerator.kt:589 */
   82     82   
        let body = ::aws_smithy_legacy_http_server::body::boxed(::aws_smithy_legacy_http_server::body::Body::wrap_stream(
   83     83   
            /* ServerProtocolLoader.kt:42 */::aws_smithy_legacy_http::futures_stream_adapter::FuturesStreamCompatByteStream::new(
   84         -
                /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_streaming_traits_output::ser_blob_http_payload( output.blob)?
          84  +
                /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_streaming_traits_output::ser_blob_http_payload( output.blob)?
   85     85   
            /* ServerProtocolLoader.kt:42 */)
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:589 */));
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:625 */
   88     88   
        builder.body(body)?
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:461 */
   90     90   
    })
   91     91   
    /* ServerHttpBoundProtocolGenerator.kt:449 */
   92     92   
}
   93     93   
   94     94   
/* HttpBindingGenerator.kt:565 */

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_streaming_traits_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_blob_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_streaming_traits_require_length.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: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_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_streaming_traits_with_media_type.rs

@@ -50,50 +110,110 @@
   70     70   
            builder,
   71     71   
            ::http::header::CONTENT_TYPE,
   72     72   
            "text/plain",
   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:589 */
   78     78   
        let body = ::aws_smithy_legacy_http_server::body::boxed(::aws_smithy_legacy_http_server::body::Body::wrap_stream(
   79     79   
            /* ServerProtocolLoader.kt:42 */::aws_smithy_legacy_http::futures_stream_adapter::FuturesStreamCompatByteStream::new(
   80         -
                /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_streaming_traits_with_media_type_output::ser_blob_http_payload( output.blob)?
          80  +
                /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_streaming_traits_with_media_type_output::ser_blob_http_payload( output.blob)?
   81     81   
            /* ServerProtocolLoader.kt:42 */)
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:589 */));
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:625 */
   84     84   
        builder.body(body)?
   85     85   
        /* ServerHttpBoundProtocolGenerator.kt:461 */
   86     86   
    })
   87     87   
    /* ServerHttpBoundProtocolGenerator.kt:449 */
   88     88   
}
   89     89   
   90     90   
/* HttpBindingGenerator.kt:565 */

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_streaming_traits_with_media_type_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_blob_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_test_body_structure.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:235 */crate::protocol_serde::shape_test_body_structure_output::ser_test_body_structure_output_output_output(&output)?
          88  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_test_body_structure_output::ser_test_body_structure_output_output_output(&output)?
   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_test_get_no_input_no_payload.rs

@@ -38,38 +98,98 @@
   58     58   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   59     59   
            builder,
   60     60   
            ::http::header::CONTENT_TYPE,
   61     61   
            "application/json",
   62     62   
        );
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   64     64   
        let http_status: u16 = 200;
   65     65   
        builder = builder.status(http_status);
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   67     67   
        let payload =
   68         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_test_get_no_input_no_payload_output::ser_test_get_no_input_no_payload_output_output_output(&output)?
          68  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_test_get_no_input_no_payload_output::ser_test_get_no_input_no_payload_output_output_output(&output)?
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   71     71   
        let content_length = payload.len();
   72     72   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   73     73   
            builder,
   74     74   
            ::http::header::CONTENT_LENGTH,
   75     75   
            content_length,
   76     76   
        );
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   78     78   
        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_test_get_no_payload.rs

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

@@ -44,44 +104,104 @@
   64     64   
        let mut builder = ::http::Response::builder();
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:679 */
   66     66   
        builder = crate::protocol_serde::shape_test_payload_blob::ser_test_payload_blob_headers(
   67     67   
            &output, builder,
   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:348 */crate::protocol_serde::shape_test_payload_blob_output::ser_data_http_payload( output.data)?
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_test_payload_blob_output::ser_data_http_payload( output.data)?
   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);