Server Test

Server Test

rev. 4dfb3cf9797fd6c7a302d71b14fc801753358c72

Files changed:

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

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

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

@@ -1,1 +42,42 @@
    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_nested_http_payload(
    4      4   
    payload: &::std::option::Option<crate::model::UnionPayload>,
    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:337 */
   12         -
                crate::protocol_serde::rest_json_unset_union_payload(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:342 */
          12  +
                crate::protocol_serde::rest_json_unset_union_payload(), /* HttpBoundProtocolPayloadGenerator.kt:323 */
   13     13   
            )
   14     14   
        }
   15     15   
    };
   16         -
    /* HttpBoundProtocolPayloadGenerator.kt:343 */
          16  +
    /* HttpBoundProtocolPayloadGenerator.kt:348 */
   17     17   
    Ok(
   18         -
        /* HttpBoundProtocolPayloadGenerator.kt:384 */
   19         -
        crate::protocol_serde::shape_http_payload_with_union_output::ser_nested_payload(payload)?, /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:389 */
          19  +
        crate::protocol_serde::shape_http_payload_with_union_output::ser_nested_payload(payload)?, /* HttpBoundProtocolPayloadGenerator.kt:348 */
   20     20   
    )
   21         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          21  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   22     22   
}
   23     23   
   24     24   
/* JsonSerializerGenerator.kt:242 */
   25     25   
pub fn ser_nested_payload(
   26     26   
    input: &crate::model::UnionPayload,
   27     27   
) -> std::result::Result<
   28     28   
    ::std::vec::Vec<u8>,
   29     29   
    ::aws_smithy_types::error::operation::SerializationError,
   30     30   
> {
   31     31   
    /* JsonSerializerGenerator.kt:247 */

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

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

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

@@ -34,34 +94,94 @@
   54     54   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   55     55   
            builder,
   56     56   
            ::http_1x::header::CONTENT_TYPE,
   57     57   
            "application/json",
   58     58   
        );
   59     59   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   60     60   
        let http_status: u16 = 200;
   61     61   
        builder = builder.status(http_status);
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   63     63   
        let payload =
   64         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_http_prefix_headers_in_response_output::ser_http_prefix_headers_in_response_output_output_output(&output)?
          64  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_http_prefix_headers_in_response_output::ser_http_prefix_headers_in_response_output_output_output(&output)?
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   67     67   
        let content_length = payload.len();
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_LENGTH,
   71     71   
            content_length,
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   74     74   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -67,67 +127,127 @@
   87     87   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   88     88   
            builder,
   89     89   
            ::http_1x::header::CONTENT_TYPE,
   90     90   
            "application/json",
   91     91   
        );
   92     92   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   93     93   
        let http_status: u16 = 200;
   94     94   
        builder = builder.status(http_status);
   95     95   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   96     96   
        let payload =
   97         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          97  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   98     98   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   99     99   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  100    100   
        let content_length = payload.len();
  101    101   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  102    102   
            builder,
  103    103   
            ::http_1x::header::CONTENT_LENGTH,
  104    104   
            content_length,
  105    105   
        );
  106    106   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  107    107   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -73,73 +133,133 @@
   93     93   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   94     94   
            builder,
   95     95   
            ::http_1x::header::CONTENT_TYPE,
   96     96   
            "application/json",
   97     97   
        );
   98     98   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   99     99   
        let http_status: u16 = 200;
  100    100   
        builder = builder.status(http_status);
  101    101   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  102    102   
        let payload =
  103         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         103  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  104    104   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  105    105   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  106    106   
        let content_length = payload.len();
  107    107   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  108    108   
            builder,
  109    109   
            ::http_1x::header::CONTENT_LENGTH,
  110    110   
            content_length,
  111    111   
        );
  112    112   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  113    113   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -130,130 +190,190 @@
  150    150   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  151    151   
            builder,
  152    152   
            ::http_1x::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_http::header::set_response_header_if_absent(
  165    165   
            builder,
  166    166   
            ::http_1x::header::CONTENT_LENGTH,
  167    167   
            content_length,
  168    168   
        );
  169    169   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  170    170   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -123,123 +183,183 @@
  143    143   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  144    144   
            builder,
  145    145   
            ::http_1x::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_http::header::set_response_header_if_absent(
  158    158   
            builder,
  159    159   
            ::http_1x::header::CONTENT_LENGTH,
  160    160   
            content_length,
  161    161   
        );
  162    162   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  163    163   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json/rust-server-codegen/src/protocol_serde/shape_http_request_with_regex_literal.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: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_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/rest_json/rust-server-codegen/src/protocol_serde/shape_http_response_code.rs

@@ -38,38 +84,84 @@
   58     58   
        );
   59     59   
        /* ServerHttpBoundProtocolGenerator.kt:751 */
   60     60   
        let status = output.status
   61     61   
            /* ServerHttpBoundProtocolGenerator.kt:753 */.unwrap_or(200)
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:751 */;
   63     63   
        /* ServerHttpBoundProtocolGenerator.kt:756 */
   64     64   
        let http_status: u16 = status.try_into().map_err(::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection::InvalidHttpStatusCode)?;
   65     65   
        builder = builder.status(http_status);
   66     66   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   67     67   
        let payload =
   68         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_http_response_code_output::ser_http_response_code_output_output_output(&output)?
          68  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_http_response_code_output::ser_http_response_code_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_http::header::set_response_header_if_absent(
   73     73   
            builder,
   74     74   
            ::http_1x::header::CONTENT_LENGTH,
   75     75   
            content_length,
   76     76   
        );
   77     77   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   78     78   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

@@ -48,48 +94,94 @@
   68     68   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http_1x::header::CONTENT_TYPE,
   71     71   
            "text/plain",
   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:348 */crate::protocol_serde::shape_http_string_payload_output::ser_payload_http_payload( output.payload)?
          78  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_string_payload_output::ser_payload_http_payload( output.payload)?
   79     79   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   80     80   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   81     81   
        let content_length = payload.len();
   82     82   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   83     83   
            builder,
   84     84   
            ::http_1x::header::CONTENT_LENGTH,
   85     85   
            content_length,
   86     86   
        );
   87     87   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   88     88   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

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

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

@@ -118,118 +178,178 @@
  138    138   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
  139    139   
            builder,
  140    140   
            ::http_1x::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_http::header::set_response_header_if_absent(
  153    153   
            builder,
  154    154   
            ::http_1x::header::CONTENT_LENGTH,
  155    155   
            content_length,
  156    156   
        );
  157    157   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  158    158   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);

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

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

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

@@ -47,47 +107,107 @@
   67     67   
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
   68     68   
            builder,
   69     69   
            ::http_1x::header::CONTENT_TYPE,
   70     70   
            "application/json",
   71     71   
        );
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   73     73   
        let http_status: u16 = 200;
   74     74   
        builder = builder.status(http_status);
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   76     76   
        let payload =
   77         -
            /* HttpBoundProtocolPayloadGenerator.kt:235 */crate::protocol_serde::shape_json_enums_output::ser_json_enums_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_json_enums_output::ser_json_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_http::header::set_response_header_if_absent(
   82     82   
            builder,
   83     83   
            ::http_1x::header::CONTENT_LENGTH,
   84     84   
            content_length,
   85     85   
        );
   86     86   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   87     87   
        let body = ::aws_smithy_http_server::body::to_boxed(payload);