Server Test

Server Test

rev. 2613e17baabf9f07b5b1870ece26ed14bd4a641b

Files changed:

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk-http0x/rust-server-codegen/src/event_stream_serde.rs

@@ -129,129 +227,227 @@
  149    149   
        /* EventStreamUnmarshallerGenerator.kt:130 */
  150    150   
        match response_headers.message_type.as_str() {
  151    151   
            /* EventStreamUnmarshallerGenerator.kt:131 */
  152    152   
            "event" => {
  153    153   
                /* EventStreamUnmarshallerGenerator.kt:156 */
  154    154   
                match response_headers.smithy_type.as_str() {
  155    155   
                    /* EventStreamUnmarshallerGenerator.kt:159 */
  156    156   
                    "event" => {
  157    157   
                        /* EventStreamUnmarshallerGenerator.kt:222 */
  158    158   
                        let mut builder = crate::model::capturing_event::Builder::default();
  159         -
                        /* EventStreamUnmarshallerGenerator.kt:289 */
         159  +
                        /* EventStreamUnmarshallerGenerator.kt:309 */
  160    160   
                        builder = builder.set_payload(
  161         -
                            /* EventStreamUnmarshallerGenerator.kt:290 */Some(
  162         -
                                /* EventStreamUnmarshallerGenerator.kt:318 */crate::protocol_serde::shape_capturing_payload::de_capturing_payload_payload(&message.payload()[..])
         161  +
                            /* EventStreamUnmarshallerGenerator.kt:310 */Some(
         162  +
                                /* EventStreamUnmarshallerGenerator.kt:338 */crate::protocol_serde::shape_capturing_payload::de_capturing_payload_payload(&message.payload()[..])
  163    163   
                                                .map_err(|err| {
  164    164   
                                                    ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall payload: {err}"))
  165    165   
                                                })?
  166         -
                            /* EventStreamUnmarshallerGenerator.kt:290 */)
  167         -
                        /* EventStreamUnmarshallerGenerator.kt:289 */);
  168         -
                        /* EventStreamUnmarshallerGenerator.kt:246 */
         166  +
                            /* EventStreamUnmarshallerGenerator.kt:310 */)
         167  +
                        /* EventStreamUnmarshallerGenerator.kt:309 */);
         168  +
                        /* EventStreamUnmarshallerGenerator.kt:266 */
  169    169   
                        Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Event(
  170    170   
                            crate::model::AttemptCapturingPokemonEvent::Event(builder.build()),
  171    171   
                        ))
  172    172   
                        /* EventStreamUnmarshallerGenerator.kt:159 */
  173    173   
                    }
  174    174   
                    /* EventStreamUnmarshallerGenerator.kt:163 */
  175    175   
                    _unknown_variant => {
  176    176   
                        /* EventStreamUnmarshallerGenerator.kt:173 */
  177    177   
                        return Err(::aws_smithy_eventstream::error::Error::unmarshalling(
  178    178   
                            format!("unrecognized :event-type: {_unknown_variant}"),
  179    179   
                        ));
  180    180   
                        /* EventStreamUnmarshallerGenerator.kt:163 */
  181    181   
                    } /* EventStreamUnmarshallerGenerator.kt:156 */
  182    182   
                }
  183    183   
                /* EventStreamUnmarshallerGenerator.kt:131 */
  184    184   
            }
  185    185   
            /* EventStreamUnmarshallerGenerator.kt:134 */
  186    186   
            "exception" => {
  187         -
                /* EventStreamUnmarshallerGenerator.kt:357 */
         187  +
                /* EventStreamUnmarshallerGenerator.kt:377 */
  188    188   
                if response_headers.smithy_type.as_str() ==
  189         -
                /* EventStreamUnmarshallerGenerator.kt:359 */"masterball_unsuccessful"
         189  +
                /* EventStreamUnmarshallerGenerator.kt:379 */"masterball_unsuccessful"
  190    190   
                {
  191         -
                    /* EventStreamUnmarshallerGenerator.kt:407 */
         191  +
                    /* EventStreamUnmarshallerGenerator.kt:427 */
  192    192   
                    let mut builder = crate::error::master_ball_unsuccessful::Builder::default();
  193         -
                    /* EventStreamUnmarshallerGenerator.kt:409 */
         193  +
                    /* EventStreamUnmarshallerGenerator.kt:429 */
  194    194   
                    builder = crate::protocol_serde::shape_master_ball_unsuccessful::de_master_ball_unsuccessful_json_err(&message.payload()[..], builder)
  195    195   
                                                            .map_err(|err| {
  196    196   
                                                                ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall masterball_unsuccessful: {err}"))
  197    197   
                                                            })?;
  198         -
                    /* EventStreamUnmarshallerGenerator.kt:420 */
         198  +
                    /* EventStreamUnmarshallerGenerator.kt:440 */
  199    199   
                    return Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Error(
  200    200   
                        crate::error::AttemptCapturingPokemonEventError::MasterBallUnsuccessful(
  201    201   
                            builder.build(),
  202    202   
                        ),
  203    203   
                    ));
  204         -
                    /* EventStreamUnmarshallerGenerator.kt:359 */
         204  +
                    /* EventStreamUnmarshallerGenerator.kt:379 */
  205    205   
                }
  206         -
                /* EventStreamUnmarshallerGenerator.kt:446 */
         206  +
                /* EventStreamUnmarshallerGenerator.kt:466 */
  207    207   
                return Err(aws_smithy_eventstream::error::Error::unmarshalling(
  208    208   
                    format!(
  209    209   
                        "unrecognized exception: {}",
  210    210   
                        response_headers.smithy_type.as_str()
  211    211   
                    ),
  212    212   
                ));
  213    213   
                /* EventStreamUnmarshallerGenerator.kt:134 */
  214    214   
            }
  215    215   
            /* EventStreamUnmarshallerGenerator.kt:137 */
  216    216   
            value => {

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk-http0x/rust-server-codegen/src/protocol_serde/shape_check_health.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/pokemon-service-server-sdk-http0x/rust-server-codegen/src/protocol_serde/shape_do_nothing.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_do_nothing_output::ser_do_nothing_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_do_nothing_output::ser_do_nothing_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/pokemon-service-server-sdk-http0x/rust-server-codegen/src/protocol_serde/shape_get_pokemon_species.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:235 */crate::protocol_serde::shape_get_pokemon_species_output::ser_get_pokemon_species_output_output_output(&output)?
          85  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_get_pokemon_species_output::ser_get_pokemon_species_output_output_output(&output)?
   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/pokemon-service-server-sdk-http0x/rust-server-codegen/src/protocol_serde/shape_get_server_statistics.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_get_server_statistics_output::ser_get_server_statistics_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_get_server_statistics_output::ser_get_server_statistics_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/pokemon-service-server-sdk-http0x/rust-server-codegen/src/protocol_serde/shape_get_storage.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_get_storage_output::ser_get_storage_output_output_output(&output)?
          88  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_get_storage_output::ser_get_storage_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/pokemon-service-server-sdk-http0x/rust-server-codegen/src/protocol_serde/shape_stream_pokemon_radio.rs

@@ -37,37 +75,75 @@
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_TYPE,
   59     59   
            "application/octet-stream",
   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:589 */
   65     65   
        let body = ::aws_smithy_legacy_http_server::body::boxed(::aws_smithy_legacy_http_server::body::Body::wrap_stream(
   66     66   
            /* ServerProtocolLoader.kt:42 */::aws_smithy_legacy_http::futures_stream_adapter::FuturesStreamCompatByteStream::new(
   67         -
                /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_stream_pokemon_radio_output::ser_data_http_payload( output.data)?
          67  +
                /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_stream_pokemon_radio_output::ser_data_http_payload( output.data)?
   68     68   
            /* ServerProtocolLoader.kt:42 */)
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:589 */));
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:625 */
   71     71   
        builder.body(body)?
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:461 */
   73     73   
    })
   74     74   
    /* ServerHttpBoundProtocolGenerator.kt:449 */
   75     75   
}

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk-http0x/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/pokemon-service-server-sdk/rust-server-codegen/src/event_stream_serde.rs

@@ -129,129 +227,227 @@
  149    149   
        /* EventStreamUnmarshallerGenerator.kt:130 */
  150    150   
        match response_headers.message_type.as_str() {
  151    151   
            /* EventStreamUnmarshallerGenerator.kt:131 */
  152    152   
            "event" => {
  153    153   
                /* EventStreamUnmarshallerGenerator.kt:156 */
  154    154   
                match response_headers.smithy_type.as_str() {
  155    155   
                    /* EventStreamUnmarshallerGenerator.kt:159 */
  156    156   
                    "event" => {
  157    157   
                        /* EventStreamUnmarshallerGenerator.kt:222 */
  158    158   
                        let mut builder = crate::model::capturing_event::Builder::default();
  159         -
                        /* EventStreamUnmarshallerGenerator.kt:289 */
         159  +
                        /* EventStreamUnmarshallerGenerator.kt:309 */
  160    160   
                        builder = builder.set_payload(
  161         -
                            /* EventStreamUnmarshallerGenerator.kt:290 */Some(
  162         -
                                /* EventStreamUnmarshallerGenerator.kt:318 */crate::protocol_serde::shape_capturing_payload::de_capturing_payload_payload(&message.payload()[..])
         161  +
                            /* EventStreamUnmarshallerGenerator.kt:310 */Some(
         162  +
                                /* EventStreamUnmarshallerGenerator.kt:338 */crate::protocol_serde::shape_capturing_payload::de_capturing_payload_payload(&message.payload()[..])
  163    163   
                                                .map_err(|err| {
  164    164   
                                                    ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall payload: {err}"))
  165    165   
                                                })?
  166         -
                            /* EventStreamUnmarshallerGenerator.kt:290 */)
  167         -
                        /* EventStreamUnmarshallerGenerator.kt:289 */);
  168         -
                        /* EventStreamUnmarshallerGenerator.kt:246 */
         166  +
                            /* EventStreamUnmarshallerGenerator.kt:310 */)
         167  +
                        /* EventStreamUnmarshallerGenerator.kt:309 */);
         168  +
                        /* EventStreamUnmarshallerGenerator.kt:266 */
  169    169   
                        Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Event(
  170    170   
                            crate::model::AttemptCapturingPokemonEvent::Event(builder.build()),
  171    171   
                        ))
  172    172   
                        /* EventStreamUnmarshallerGenerator.kt:159 */
  173    173   
                    }
  174    174   
                    /* EventStreamUnmarshallerGenerator.kt:163 */
  175    175   
                    _unknown_variant => {
  176    176   
                        /* EventStreamUnmarshallerGenerator.kt:173 */
  177    177   
                        return Err(::aws_smithy_eventstream::error::Error::unmarshalling(
  178    178   
                            format!("unrecognized :event-type: {_unknown_variant}"),
  179    179   
                        ));
  180    180   
                        /* EventStreamUnmarshallerGenerator.kt:163 */
  181    181   
                    } /* EventStreamUnmarshallerGenerator.kt:156 */
  182    182   
                }
  183    183   
                /* EventStreamUnmarshallerGenerator.kt:131 */
  184    184   
            }
  185    185   
            /* EventStreamUnmarshallerGenerator.kt:134 */
  186    186   
            "exception" => {
  187         -
                /* EventStreamUnmarshallerGenerator.kt:357 */
         187  +
                /* EventStreamUnmarshallerGenerator.kt:377 */
  188    188   
                if response_headers.smithy_type.as_str() ==
  189         -
                /* EventStreamUnmarshallerGenerator.kt:359 */"masterball_unsuccessful"
         189  +
                /* EventStreamUnmarshallerGenerator.kt:379 */"masterball_unsuccessful"
  190    190   
                {
  191         -
                    /* EventStreamUnmarshallerGenerator.kt:407 */
         191  +
                    /* EventStreamUnmarshallerGenerator.kt:427 */
  192    192   
                    let mut builder = crate::error::master_ball_unsuccessful::Builder::default();
  193         -
                    /* EventStreamUnmarshallerGenerator.kt:409 */
         193  +
                    /* EventStreamUnmarshallerGenerator.kt:429 */
  194    194   
                    builder = crate::protocol_serde::shape_master_ball_unsuccessful::de_master_ball_unsuccessful_json_err(&message.payload()[..], builder)
  195    195   
                                                            .map_err(|err| {
  196    196   
                                                                ::aws_smithy_eventstream::error::Error::unmarshalling(format!("failed to unmarshall masterball_unsuccessful: {err}"))
  197    197   
                                                            })?;
  198         -
                    /* EventStreamUnmarshallerGenerator.kt:420 */
         198  +
                    /* EventStreamUnmarshallerGenerator.kt:440 */
  199    199   
                    return Ok(::aws_smithy_eventstream::frame::UnmarshalledMessage::Error(
  200    200   
                        crate::error::AttemptCapturingPokemonEventError::MasterBallUnsuccessful(
  201    201   
                            builder.build(),
  202    202   
                        ),
  203    203   
                    ));
  204         -
                    /* EventStreamUnmarshallerGenerator.kt:359 */
         204  +
                    /* EventStreamUnmarshallerGenerator.kt:379 */
  205    205   
                }
  206         -
                /* EventStreamUnmarshallerGenerator.kt:446 */
         206  +
                /* EventStreamUnmarshallerGenerator.kt:466 */
  207    207   
                return Err(aws_smithy_eventstream::error::Error::unmarshalling(
  208    208   
                    format!(
  209    209   
                        "unrecognized exception: {}",
  210    210   
                        response_headers.smithy_type.as_str()
  211    211   
                    ),
  212    212   
                ));
  213    213   
                /* EventStreamUnmarshallerGenerator.kt:134 */
  214    214   
            }
  215    215   
            /* EventStreamUnmarshallerGenerator.kt:137 */
  216    216   
            value => {

tmp-codegen-diff/codegen-server-test/pokemon-service-server-sdk/rust-server-codegen/src/protocol_serde/shape_check_health.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:233 */""
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   67     67   
        let content_length = payload.len();
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_LENGTH,
   71     71   
            content_length,
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   74     74   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -32,32 +78,78 @@
   52     52   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   53     53   
            builder,
   54     54   
            ::http_1x::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_do_nothing_output::ser_do_nothing_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_do_nothing_output::ser_do_nothing_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_http::header::set_response_header_if_absent(
   67     67   
            builder,
   68     68   
            ::http_1x::header::CONTENT_LENGTH,
   69     69   
            content_length,
   70     70   
        );
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   72     72   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -55,55 +115,115 @@
   75     75   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   76     76   
            builder,
   77     77   
            ::http_1x::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:235 */crate::protocol_serde::shape_get_pokemon_species_output::ser_get_pokemon_species_output_output_output(&output)?
          85  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_get_pokemon_species_output::ser_get_pokemon_species_output_output_output(&output)?
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   88     88   
        let content_length = payload.len();
   89     89   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   90     90   
            builder,
   91     91   
            ::http_1x::header::CONTENT_LENGTH,
   92     92   
            content_length,
   93     93   
        );
   94     94   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   95     95   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -32,32 +78,78 @@
   52     52   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   53     53   
            builder,
   54     54   
            ::http_1x::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_get_server_statistics_output::ser_get_server_statistics_output_output_output(&output)?
          62  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_get_server_statistics_output::ser_get_server_statistics_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_http::header::set_response_header_if_absent(
   67     67   
            builder,
   68     68   
            ::http_1x::header::CONTENT_LENGTH,
   69     69   
            content_length,
   70     70   
        );
   71     71   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   72     72   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -58,58 +118,118 @@
   78     78   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http_1x::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_get_storage_output::ser_get_storage_output_output_output(&output)?
          88  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_get_storage_output::ser_get_storage_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_http::header::set_response_header_if_absent(
   93     93   
            builder,
   94     94   
            ::http_1x::header::CONTENT_LENGTH,
   95     95   
            content_length,
   96     96   
        );
   97     97   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   98     98   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -35,35 +73,73 @@
   55     55   
            builder,
   56     56   
            ::http_1x::header::CONTENT_TYPE,
   57     57   
            "application/octet-stream",
   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:589 */
   63     63   
        let body = ::aws_smithy_http_server::body::boxed(::aws_smithy_http_server::body::wrap_stream(
   64     64   
            /* ServerProtocolLoader.kt:42 */::aws_smithy_http::futures_stream_adapter::FuturesStreamCompatByteStream::new(
   65         -
                /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_stream_pokemon_radio_output::ser_data_http_payload( output.data)?
          65  +
                /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_stream_pokemon_radio_output::ser_data_http_payload( output.data)?
   66     66   
            /* ServerProtocolLoader.kt:42 */)
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:589 */));
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:625 */
   69     69   
        builder.body(body)?
   70     70   
        /* ServerHttpBoundProtocolGenerator.kt:461 */
   71     71   
    })
   72     72   
    /* ServerHttpBoundProtocolGenerator.kt:449 */
   73     73   
}