Server Test

Server Test

rev. 2613e17baabf9f07b5b1870ece26ed14bd4a641b

Files changed:

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

@@ -37,37 +83,83 @@
   57     57   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   58     58   
            builder,
   59     59   
            ::http::header::CONTENT_TYPE,
   60     60   
            "text/plain",
   61     61   
        );
   62     62   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   63     63   
        let http_status: u16 = 200;
   64     64   
        builder = builder.status(http_status);
   65     65   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   66     66   
        let payload =
   67         -
            /* HttpBoundProtocolPayloadGenerator.kt:348 */crate::protocol_serde::shape_malformed_accept_with_generic_string_output::ser_payload_http_payload( output.payload)?
          67  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_malformed_accept_with_generic_string_output::ser_payload_http_payload( output.payload)?
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   70     70   
        let content_length = payload.len();
   71     71   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   72     72   
            builder,
   73     73   
            ::http::header::CONTENT_LENGTH,
   74     74   
            content_length,
   75     75   
        );
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   77     77   
        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_malformed_accept_with_generic_string_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-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_payload.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   
            "image/jpeg",
   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:348 */crate::protocol_serde::shape_malformed_accept_with_payload_output::ser_payload_http_payload( output.payload)?
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:353 */crate::protocol_serde::shape_malformed_accept_with_payload_output::ser_payload_http_payload( output.payload)?
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   69     69   
        let content_length = payload.len();
   70     70   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

tmp-codegen-diff/codegen-server-test/rest_json-http0x/rust-server-codegen/src/protocol_serde/shape_malformed_accept_with_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<::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_malformed_blob.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: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_malformed_boolean.rs

@@ -95,95 +155,155 @@
  115    115   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  116    116   
            builder,
  117    117   
            ::http::header::CONTENT_TYPE,
  118    118   
            "application/json",
  119    119   
        );
  120    120   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  121    121   
        let http_status: u16 = 200;
  122    122   
        builder = builder.status(http_status);
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  124    124   
        let payload =
  125         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         125  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  127    127   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  128    128   
        let content_length = payload.len();
  129    129   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  130    130   
            builder,
  131    131   
            ::http::header::CONTENT_LENGTH,
  132    132   
            content_length,
  133    133   
        );
  134    134   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  135    135   
        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_malformed_byte.rs

@@ -91,91 +151,151 @@
  111    111   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  112    112   
            builder,
  113    113   
            ::http::header::CONTENT_TYPE,
  114    114   
            "application/json",
  115    115   
        );
  116    116   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  117    117   
        let http_status: u16 = 200;
  118    118   
        builder = builder.status(http_status);
  119    119   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  120    120   
        let payload =
  121         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         121  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  122    122   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  124    124   
        let content_length = payload.len();
  125    125   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  126    126   
            builder,
  127    127   
            ::http::header::CONTENT_LENGTH,
  128    128   
            content_length,
  129    129   
        );
  130    130   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  131    131   
        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_malformed_content_type_with_body.rs

@@ -44,44 +104,104 @@
   64     64   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   65     65   
            builder,
   66     66   
            ::http::header::CONTENT_TYPE,
   67     67   
            "application/json",
   68     68   
        );
   69     69   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   70     70   
        let http_status: u16 = 200;
   71     71   
        builder = builder.status(http_status);
   72     72   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   73     73   
        let payload =
   74         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          74  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   76     76   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   77     77   
        let content_length = payload.len();
   78     78   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   79     79   
            builder,
   80     80   
            ::http::header::CONTENT_LENGTH,
   81     81   
            content_length,
   82     82   
        );
   83     83   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   84     84   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -46,46 +92,92 @@
   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:233 */""
          76  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   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_malformed_content_type_with_payload.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:233 */""
          75  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   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_malformed_content_type_without_body.rs

@@ -36,36 +82,82 @@
   56     56   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   57     57   
            builder,
   58     58   
            ::http::header::CONTENT_TYPE,
   59     59   
            "application/json",
   60     60   
        );
   61     61   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
   62     62   
        let http_status: u16 = 200;
   63     63   
        builder = builder.status(http_status);
   64     64   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
   65     65   
        let payload =
   66         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
          66  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   67     67   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
   68     68   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
   69     69   
        let content_length = payload.len();
   70     70   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     71   
            builder,
   72     72   
            ::http::header::CONTENT_LENGTH,
   73     73   
            content_length,
   74     74   
        );
   75     75   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
   76     76   
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);

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

@@ -38,38 +84,84 @@
   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:233 */""
          68  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
   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_malformed_double.rs

@@ -95,95 +155,155 @@
  115    115   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  116    116   
            builder,
  117    117   
            ::http::header::CONTENT_TYPE,
  118    118   
            "application/json",
  119    119   
        );
  120    120   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  121    121   
        let http_status: u16 = 200;
  122    122   
        builder = builder.status(http_status);
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  124    124   
        let payload =
  125         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         125  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  127    127   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  128    128   
        let content_length = payload.len();
  129    129   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  130    130   
            builder,
  131    131   
            ::http::header::CONTENT_LENGTH,
  132    132   
            content_length,
  133    133   
        );
  134    134   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  135    135   
        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_malformed_float.rs

@@ -93,93 +153,153 @@
  113    113   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  114    114   
            builder,
  115    115   
            ::http::header::CONTENT_TYPE,
  116    116   
            "application/json",
  117    117   
        );
  118    118   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  119    119   
        let http_status: u16 = 200;
  120    120   
        builder = builder.status(http_status);
  121    121   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  122    122   
        let payload =
  123         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         123  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  124    124   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  125    125   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  126    126   
        let content_length = payload.len();
  127    127   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  128    128   
            builder,
  129    129   
            ::http::header::CONTENT_LENGTH,
  130    130   
            content_length,
  131    131   
        );
  132    132   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  133    133   
        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_malformed_integer.rs

@@ -95,95 +155,155 @@
  115    115   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  116    116   
            builder,
  117    117   
            ::http::header::CONTENT_TYPE,
  118    118   
            "application/json",
  119    119   
        );
  120    120   
        /* ServerHttpBoundProtocolGenerator.kt:732 */
  121    121   
        let http_status: u16 = 200;
  122    122   
        builder = builder.status(http_status);
  123    123   
        /* ServerHttpBoundProtocolGenerator.kt:611 */
  124    124   
        let payload =
  125         -
            /* HttpBoundProtocolPayloadGenerator.kt:233 */""
         125  +
            /* HttpBoundProtocolPayloadGenerator.kt:238 */""
  126    126   
        /* ServerHttpBoundProtocolGenerator.kt:611 */;
  127    127   
        /* ServerHttpBoundProtocolGenerator.kt:713 */
  128    128   
        let content_length = payload.len();
  129    129   
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  130    130   
            builder,
  131    131   
            ::http::header::CONTENT_LENGTH,
  132    132   
            content_length,
  133    133   
        );
  134    134   
        /* ServerHttpBoundProtocolGenerator.kt:617 */
  135    135   
        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_malformed_list.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: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);