Server Test

Server Test

rev. 4dfb3cf9797fd6c7a302d71b14fc801753358c72

Files changed:

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_http_checksum_required.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_http_checksum_required_output::ser_http_checksum_required_output_output_output(&output)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:240 */crate::protocol_serde::shape_http_checksum_required_output::ser_http_checksum_required_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_http_empty_prefix_headers.rs

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

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

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

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_http_enum_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<crate::model::StringEnum>,
    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:361 */
   19         -
        payload.as_str().as_bytes().to_vec(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:366 */
          19  +
        payload.as_str().as_bytes().to_vec(), /* 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_http_payload_traits.rs

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

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_http_payload_traits_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_blob_http_payload(
    4      4   
    payload: ::std::option::Option<::aws_smithy_types::Blob>,
    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:375 */
   19         -
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:380 */
          19  +
        payload.into_inner(), /* 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_http_payload_traits_with_media_type.rs

@@ -57,57 +117,117 @@
   77     77   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   78     78   
            builder,
   79     79   
            ::http::header::CONTENT_TYPE,
   80     80   
            "text/plain",
   81     81   
        );
   82     82   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   83     83   
        let http_status: u16 = 200;
   84     84   
        builder = builder.status(http_status);
   85     85   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   86     86   
        let payload =
   87         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_http_payload_traits_with_media_type_output::ser_blob_http_payload( output.blob)?
          87  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_payload_traits_with_media_type_output::ser_blob_http_payload( output.blob)?
   88     88   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   89     89   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   90     90   
        let content_length = payload.len();
   91     91   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   92     92   
            builder,
   93     93   
            ::http::header::CONTENT_LENGTH,
   94     94   
            content_length,
   95     95   
        );
   96     96   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   97     97   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_http_payload_traits_with_media_type_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_blob_http_payload(
    4      4   
    payload: ::std::option::Option<::aws_smithy_types::Blob>,
    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:375 */
   19         -
        payload.into_inner(), /* HttpBoundProtocolPayloadGenerator.kt:343 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:380 */
          19  +
        payload.into_inner(), /* 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_http_payload_with_structure.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_http_payload_with_structure_output::ser_nested_http_payload(& output.nested)?
          77  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_http_payload_with_structure_output::ser_nested_http_payload(& output.nested)?
   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_http_payload_with_structure_output.rs

@@ -1,1 +44,44 @@
    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::NestedPayload>,
    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:336 */
   12         -
                crate::protocol_serde::rest_json_unset_struct_payload(), /* HttpBoundProtocolPayloadGenerator.kt:318 */
          11  +
                /* HttpBoundProtocolPayloadGenerator.kt:341 */
          12  +
                crate::protocol_serde::rest_json_unset_struct_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 */
          18  +
        /* HttpBoundProtocolPayloadGenerator.kt:389 */
   19     19   
        crate::protocol_serde::shape_http_payload_with_structure_output::ser_nested_payload(
   20     20   
            payload,
   21         -
        )?, /* HttpBoundProtocolPayloadGenerator.kt:343 */
          21  +
        )?, /* HttpBoundProtocolPayloadGenerator.kt:348 */
   22     22   
    )
   23         -
    /* HttpBoundProtocolPayloadGenerator.kt:309 */
          23  +
    /* HttpBoundProtocolPayloadGenerator.kt:314 */
   24     24   
}
   25     25   
   26     26   
/* JsonSerializerGenerator.kt:242 */
   27     27   
pub fn ser_nested_payload(
   28     28   
    input: &crate::model::NestedPayload,
   29     29   
) -> std::result::Result<
   30     30   
    ::std::vec::Vec<u8>,
   31     31   
    ::aws_smithy_types::error::operation::SerializationError,
   32     32   
> {
   33     33   
    /* JsonSerializerGenerator.kt:247 */

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

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

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

@@ -51,51 +111,111 @@
   71     71   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   72     72   
            builder,
   73     73   
            ::http::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_legacy_http::header::set_response_header_if_absent(
   86     86   
            builder,
   87     87   
            ::http::header::CONTENT_LENGTH,
   88     88   
            content_length,
   89     89   
        );
   90     90   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   91     91   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -34,34 +94,94 @@
   54     54   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   55     55   
            builder,
   56     56   
            ::http::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_legacy_http::header::set_response_header_if_absent(
   69     69   
            builder,
   70     70   
            ::http::header::CONTENT_LENGTH,
   71     71   
            content_length,
   72     72   
        );
   73     73   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   74     74   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -67,67 +127,127 @@
   87     87   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   88     88   
            builder,
   89     89   
            ::http::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_legacy_http::header::set_response_header_if_absent(
  102    102   
            builder,
  103    103   
            ::http::header::CONTENT_LENGTH,
  104    104   
            content_length,
  105    105   
        );
  106    106   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  107    107   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -73,73 +133,133 @@
   93     93   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   94     94   
            builder,
   95     95   
            ::http::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_legacy_http::header::set_response_header_if_absent(
  108    108   
            builder,
  109    109   
            ::http::header::CONTENT_LENGTH,
  110    110   
            content_length,
  111    111   
        );
  112    112   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  113    113   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);