Client Test

Client Test

rev. 03e6e47f15dfd569240d570d98975ebba692c405 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_blob.rs

@@ -151,151 +224,224 @@
  171    171   
                _input: &crate::operation::malformed_blob::MalformedBlobInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/MalformedBlob").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::malformed_blob::MalformedBlobInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  189    189   
            builder
  190    190   
        };
  191    191   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_blob::ser_malformed_blob_input(&input)?);
  192    192   
        if let Some(content_length) = body.content_length() {
  193    193   
            let content_length = content_length.to_string();
  194         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         194  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  195    195   
        }
  196    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    197   
    }
  198    198   
}
  199    199   
#[derive(Debug)]
  200    200   
struct MalformedBlobEndpointParamsInterceptor;
  201    201   
  202    202   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedBlobEndpointParamsInterceptor {
  203    203   
    fn name(&self) -> &'static str {
  204    204   
        "MalformedBlobEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_boolean.rs

@@ -181,181 +256,256 @@
  201    201   
                if let ::std::option::Option::Some(inner_2) = &_input.boolean_in_query {
  202    202   
                    {
  203    203   
                        query.push_kv("booleanInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  204    204   
                    }
  205    205   
                }
  206    206   
                ::std::result::Result::Ok(())
  207    207   
            }
  208    208   
            #[allow(clippy::unnecessary_wraps)]
  209    209   
            fn update_http_builder(
  210    210   
                input: &crate::operation::malformed_boolean::MalformedBooleanInput,
  211         -
                builder: ::http::request::Builder,
  212         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         211  +
                builder: ::http_1x::request::Builder,
         212  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  213    213   
                let mut uri = ::std::string::String::new();
  214    214   
                uri_base(input, &mut uri)?;
  215    215   
                uri_query(input, &mut uri)?;
  216    216   
                let builder = crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_headers(input, builder)?;
  217    217   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  218    218   
            }
  219         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  220         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         219  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         220  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  221    221   
            builder
  222    222   
        };
  223    223   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_input(&input)?);
  224    224   
        if let Some(content_length) = body.content_length() {
  225    225   
            let content_length = content_length.to_string();
  226         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         226  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  227    227   
        }
  228    228   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  229    229   
    }
  230    230   
}
  231    231   
#[derive(Debug)]
  232    232   
struct MalformedBooleanEndpointParamsInterceptor;
  233    233   
  234    234   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedBooleanEndpointParamsInterceptor {
  235    235   
    fn name(&self) -> &'static str {
  236    236   
        "MalformedBooleanEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_byte.rs

@@ -175,175 +250,250 @@
  195    195   
                if let ::std::option::Option::Some(inner_2) = &_input.byte_in_query {
  196    196   
                    {
  197    197   
                        query.push_kv("byteInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  198    198   
                    }
  199    199   
                }
  200    200   
                ::std::result::Result::Ok(())
  201    201   
            }
  202    202   
            #[allow(clippy::unnecessary_wraps)]
  203    203   
            fn update_http_builder(
  204    204   
                input: &crate::operation::malformed_byte::MalformedByteInput,
  205         -
                builder: ::http::request::Builder,
  206         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         205  +
                builder: ::http_1x::request::Builder,
         206  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207    207   
                let mut uri = ::std::string::String::new();
  208    208   
                uri_base(input, &mut uri)?;
  209    209   
                uri_query(input, &mut uri)?;
  210    210   
                let builder = crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_headers(input, builder)?;
  211    211   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  212    212   
            }
  213         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  214         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         213  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         214  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  215    215   
            builder
  216    216   
        };
  217    217   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_input(&input)?);
  218    218   
        if let Some(content_length) = body.content_length() {
  219    219   
            let content_length = content_length.to_string();
  220         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         220  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  221    221   
        }
  222    222   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  223    223   
    }
  224    224   
}
  225    225   
#[derive(Debug)]
  226    226   
struct MalformedByteEndpointParamsInterceptor;
  227    227   
  228    228   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedByteEndpointParamsInterceptor {
  229    229   
    fn name(&self) -> &'static str {
  230    230   
        "MalformedByteEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_content_type_with_body.rs

@@ -157,157 +232,232 @@
  177    177   
                _input: &crate::operation::malformed_content_type_with_body::MalformedContentTypeWithBodyInput,
  178    178   
                output: &mut ::std::string::String,
  179    179   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    180   
                use ::std::fmt::Write as _;
  181    181   
                ::std::write!(output, "/MalformedContentTypeWithBody").expect("formatting should succeed");
  182    182   
                ::std::result::Result::Ok(())
  183    183   
            }
  184    184   
            #[allow(clippy::unnecessary_wraps)]
  185    185   
            fn update_http_builder(
  186    186   
                input: &crate::operation::malformed_content_type_with_body::MalformedContentTypeWithBodyInput,
  187         -
                builder: ::http::request::Builder,
  188         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         187  +
                builder: ::http_1x::request::Builder,
         188  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  189    189   
                let mut uri = ::std::string::String::new();
  190    190   
                uri_base(input, &mut uri)?;
  191    191   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  192    192   
            }
  193         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  194         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         193  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         194  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  195    195   
            builder
  196    196   
        };
  197    197   
        let body = ::aws_smithy_types::body::SdkBody::from(
  198    198   
            crate::protocol_serde::shape_malformed_content_type_with_body::ser_malformed_content_type_with_body_input(&input)?,
  199    199   
        );
  200    200   
        if let Some(content_length) = body.content_length() {
  201    201   
            let content_length = content_length.to_string();
  202         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         202  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  203    203   
        }
  204    204   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  205    205   
    }
  206    206   
}
  207    207   
#[derive(Debug)]
  208    208   
struct MalformedContentTypeWithBodyEndpointParamsInterceptor;
  209    209   
  210    210   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedContentTypeWithBodyEndpointParamsInterceptor {
  211    211   
    fn name(&self) -> &'static str {
  212    212   
        "MalformedContentTypeWithBodyEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_content_type_with_generic_string.rs

@@ -161,161 +236,236 @@
  181    181   
                _input: &crate::operation::malformed_content_type_with_generic_string::MalformedContentTypeWithGenericStringInput,
  182    182   
                output: &mut ::std::string::String,
  183    183   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  184    184   
                use ::std::fmt::Write as _;
  185    185   
                ::std::write!(output, "/MalformedContentTypeWithGenericString").expect("formatting should succeed");
  186    186   
                ::std::result::Result::Ok(())
  187    187   
            }
  188    188   
            #[allow(clippy::unnecessary_wraps)]
  189    189   
            fn update_http_builder(
  190    190   
                input: &crate::operation::malformed_content_type_with_generic_string::MalformedContentTypeWithGenericStringInput,
  191         -
                builder: ::http::request::Builder,
  192         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         191  +
                builder: ::http_1x::request::Builder,
         192  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  193    193   
                let mut uri = ::std::string::String::new();
  194    194   
                uri_base(input, &mut uri)?;
  195    195   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  196    196   
            }
  197         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  198         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "text/plain");
         197  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         198  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "text/plain");
  199    199   
            builder
  200    200   
        };
  201    201   
        let body = ::aws_smithy_types::body::SdkBody::from(
  202    202   
            crate::protocol_serde::shape_malformed_content_type_with_generic_string_input::ser_payload_http_payload(input.payload)?,
  203    203   
        );
  204    204   
        if let Some(content_length) = body.content_length() {
  205    205   
            let content_length = content_length.to_string();
  206         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         206  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  207    207   
        }
  208    208   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  209    209   
    }
  210    210   
}
  211    211   
#[derive(Debug)]
  212    212   
struct MalformedContentTypeWithGenericStringEndpointParamsInterceptor;
  213    213   
  214    214   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedContentTypeWithGenericStringEndpointParamsInterceptor {
  215    215   
    fn name(&self) -> &'static str {
  216    216   
        "MalformedContentTypeWithGenericStringEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_content_type_with_payload.rs

@@ -159,159 +234,234 @@
  179    179   
                _input: &crate::operation::malformed_content_type_with_payload::MalformedContentTypeWithPayloadInput,
  180    180   
                output: &mut ::std::string::String,
  181    181   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  182    182   
                use ::std::fmt::Write as _;
  183    183   
                ::std::write!(output, "/MalformedContentTypeWithPayload").expect("formatting should succeed");
  184    184   
                ::std::result::Result::Ok(())
  185    185   
            }
  186    186   
            #[allow(clippy::unnecessary_wraps)]
  187    187   
            fn update_http_builder(
  188    188   
                input: &crate::operation::malformed_content_type_with_payload::MalformedContentTypeWithPayloadInput,
  189         -
                builder: ::http::request::Builder,
  190         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         189  +
                builder: ::http_1x::request::Builder,
         190  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  191    191   
                let mut uri = ::std::string::String::new();
  192    192   
                uri_base(input, &mut uri)?;
  193    193   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  194    194   
            }
  195         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  196         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "image/jpeg");
         195  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         196  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "image/jpeg");
  197    197   
            builder
  198    198   
        };
  199    199   
        let body = ::aws_smithy_types::body::SdkBody::from(
  200    200   
            crate::protocol_serde::shape_malformed_content_type_with_payload_input::ser_payload_http_payload(input.payload)?,
  201    201   
        );
  202    202   
        if let Some(content_length) = body.content_length() {
  203    203   
            let content_length = content_length.to_string();
  204         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         204  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  205    205   
        }
  206    206   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  207    207   
    }
  208    208   
}
  209    209   
#[derive(Debug)]
  210    210   
struct MalformedContentTypeWithPayloadEndpointParamsInterceptor;
  211    211   
  212    212   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedContentTypeWithPayloadEndpointParamsInterceptor {
  213    213   
    fn name(&self) -> &'static str {
  214    214   
        "MalformedContentTypeWithPayloadEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_content_type_without_body.rs

@@ -159,159 +225,225 @@
  179    179   
                _input: &crate::operation::malformed_content_type_without_body::MalformedContentTypeWithoutBodyInput,
  180    180   
                output: &mut ::std::string::String,
  181    181   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  182    182   
                use ::std::fmt::Write as _;
  183    183   
                ::std::write!(output, "/MalformedContentTypeWithoutBody").expect("formatting should succeed");
  184    184   
                ::std::result::Result::Ok(())
  185    185   
            }
  186    186   
            #[allow(clippy::unnecessary_wraps)]
  187    187   
            fn update_http_builder(
  188    188   
                input: &crate::operation::malformed_content_type_without_body::MalformedContentTypeWithoutBodyInput,
  189         -
                builder: ::http::request::Builder,
  190         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         189  +
                builder: ::http_1x::request::Builder,
         190  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  191    191   
                let mut uri = ::std::string::String::new();
  192    192   
                uri_base(input, &mut uri)?;
  193    193   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  194    194   
            }
  195         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         195  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  196    196   
            builder
  197    197   
        };
  198    198   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  199    199   
  200    200   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  201    201   
    }
  202    202   
}
  203    203   
#[derive(Debug)]
  204    204   
struct MalformedContentTypeWithoutBodyEndpointParamsInterceptor;
  205    205   

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_content_type_without_body_empty_input.rs

@@ -158,158 +225,225 @@
  178    178   
                _input: &crate::operation::malformed_content_type_without_body_empty_input::MalformedContentTypeWithoutBodyEmptyInputInput,
  179    179   
                output: &mut ::std::string::String,
  180    180   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  181    181   
                use ::std::fmt::Write as _;
  182    182   
                ::std::write!(output, "/MalformedContentTypeWithoutBodyEmptyInput").expect("formatting should succeed");
  183    183   
                ::std::result::Result::Ok(())
  184    184   
            }
  185    185   
            #[allow(clippy::unnecessary_wraps)]
  186    186   
            fn update_http_builder(
  187    187   
                input: &crate::operation::malformed_content_type_without_body_empty_input::MalformedContentTypeWithoutBodyEmptyInputInput,
  188         -
                builder: ::http::request::Builder,
  189         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         188  +
                builder: ::http_1x::request::Builder,
         189  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  190    190   
                let mut uri = ::std::string::String::new();
  191    191   
                uri_base(input, &mut uri)?;
  192    192   
                let builder = crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::ser_malformed_content_type_without_body_empty_input_headers(input, builder)?;
  193    193   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  194    194   
            }
  195         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         195  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  196    196   
            builder
  197    197   
        };
  198    198   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  199    199   
  200    200   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  201    201   
    }
  202    202   
}
  203    203   
#[derive(Debug)]
  204    204   
struct MalformedContentTypeWithoutBodyEmptyInputEndpointParamsInterceptor;
  205    205   

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_double.rs

@@ -181,181 +256,256 @@
  201    201   
                if let ::std::option::Option::Some(inner_2) = &_input.double_in_query {
  202    202   
                    {
  203    203   
                        query.push_kv("doubleInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  204    204   
                    }
  205    205   
                }
  206    206   
                ::std::result::Result::Ok(())
  207    207   
            }
  208    208   
            #[allow(clippy::unnecessary_wraps)]
  209    209   
            fn update_http_builder(
  210    210   
                input: &crate::operation::malformed_double::MalformedDoubleInput,
  211         -
                builder: ::http::request::Builder,
  212         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         211  +
                builder: ::http_1x::request::Builder,
         212  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  213    213   
                let mut uri = ::std::string::String::new();
  214    214   
                uri_base(input, &mut uri)?;
  215    215   
                uri_query(input, &mut uri)?;
  216    216   
                let builder = crate::protocol_serde::shape_malformed_double::ser_malformed_double_headers(input, builder)?;
  217    217   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  218    218   
            }
  219         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  220         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         219  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         220  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  221    221   
            builder
  222    222   
        };
  223    223   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_double::ser_malformed_double_input(&input)?);
  224    224   
        if let Some(content_length) = body.content_length() {
  225    225   
            let content_length = content_length.to_string();
  226         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         226  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  227    227   
        }
  228    228   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  229    229   
    }
  230    230   
}
  231    231   
#[derive(Debug)]
  232    232   
struct MalformedDoubleEndpointParamsInterceptor;
  233    233   
  234    234   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedDoubleEndpointParamsInterceptor {
  235    235   
    fn name(&self) -> &'static str {
  236    236   
        "MalformedDoubleEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_float.rs

@@ -175,175 +250,250 @@
  195    195   
                if let ::std::option::Option::Some(inner_2) = &_input.float_in_query {
  196    196   
                    {
  197    197   
                        query.push_kv("floatInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  198    198   
                    }
  199    199   
                }
  200    200   
                ::std::result::Result::Ok(())
  201    201   
            }
  202    202   
            #[allow(clippy::unnecessary_wraps)]
  203    203   
            fn update_http_builder(
  204    204   
                input: &crate::operation::malformed_float::MalformedFloatInput,
  205         -
                builder: ::http::request::Builder,
  206         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         205  +
                builder: ::http_1x::request::Builder,
         206  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207    207   
                let mut uri = ::std::string::String::new();
  208    208   
                uri_base(input, &mut uri)?;
  209    209   
                uri_query(input, &mut uri)?;
  210    210   
                let builder = crate::protocol_serde::shape_malformed_float::ser_malformed_float_headers(input, builder)?;
  211    211   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  212    212   
            }
  213         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  214         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         213  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         214  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  215    215   
            builder
  216    216   
        };
  217    217   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_float::ser_malformed_float_input(&input)?);
  218    218   
        if let Some(content_length) = body.content_length() {
  219    219   
            let content_length = content_length.to_string();
  220         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         220  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  221    221   
        }
  222    222   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  223    223   
    }
  224    224   
}
  225    225   
#[derive(Debug)]
  226    226   
struct MalformedFloatEndpointParamsInterceptor;
  227    227   
  228    228   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedFloatEndpointParamsInterceptor {
  229    229   
    fn name(&self) -> &'static str {
  230    230   
        "MalformedFloatEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_integer.rs

@@ -181,181 +256,256 @@
  201    201   
                if let ::std::option::Option::Some(inner_2) = &_input.integer_in_query {
  202    202   
                    {
  203    203   
                        query.push_kv("integerInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  204    204   
                    }
  205    205   
                }
  206    206   
                ::std::result::Result::Ok(())
  207    207   
            }
  208    208   
            #[allow(clippy::unnecessary_wraps)]
  209    209   
            fn update_http_builder(
  210    210   
                input: &crate::operation::malformed_integer::MalformedIntegerInput,
  211         -
                builder: ::http::request::Builder,
  212         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         211  +
                builder: ::http_1x::request::Builder,
         212  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  213    213   
                let mut uri = ::std::string::String::new();
  214    214   
                uri_base(input, &mut uri)?;
  215    215   
                uri_query(input, &mut uri)?;
  216    216   
                let builder = crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_headers(input, builder)?;
  217    217   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  218    218   
            }
  219         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  220         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         219  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         220  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  221    221   
            builder
  222    222   
        };
  223    223   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_input(&input)?);
  224    224   
        if let Some(content_length) = body.content_length() {
  225    225   
            let content_length = content_length.to_string();
  226         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         226  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  227    227   
        }
  228    228   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  229    229   
    }
  230    230   
}
  231    231   
#[derive(Debug)]
  232    232   
struct MalformedIntegerEndpointParamsInterceptor;
  233    233   
  234    234   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedIntegerEndpointParamsInterceptor {
  235    235   
    fn name(&self) -> &'static str {
  236    236   
        "MalformedIntegerEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_list.rs

@@ -151,151 +224,224 @@
  171    171   
                _input: &crate::operation::malformed_list::MalformedListInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/MalformedList").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::malformed_list::MalformedListInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  189    189   
            builder
  190    190   
        };
  191    191   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_list::ser_malformed_list_input(&input)?);
  192    192   
        if let Some(content_length) = body.content_length() {
  193    193   
            let content_length = content_length.to_string();
  194         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         194  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  195    195   
        }
  196    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    197   
    }
  198    198   
}
  199    199   
#[derive(Debug)]
  200    200   
struct MalformedListEndpointParamsInterceptor;
  201    201   
  202    202   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedListEndpointParamsInterceptor {
  203    203   
    fn name(&self) -> &'static str {
  204    204   
        "MalformedListEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_long.rs

@@ -175,175 +250,250 @@
  195    195   
                if let ::std::option::Option::Some(inner_2) = &_input.long_in_query {
  196    196   
                    {
  197    197   
                        query.push_kv("longInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  198    198   
                    }
  199    199   
                }
  200    200   
                ::std::result::Result::Ok(())
  201    201   
            }
  202    202   
            #[allow(clippy::unnecessary_wraps)]
  203    203   
            fn update_http_builder(
  204    204   
                input: &crate::operation::malformed_long::MalformedLongInput,
  205         -
                builder: ::http::request::Builder,
  206         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         205  +
                builder: ::http_1x::request::Builder,
         206  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207    207   
                let mut uri = ::std::string::String::new();
  208    208   
                uri_base(input, &mut uri)?;
  209    209   
                uri_query(input, &mut uri)?;
  210    210   
                let builder = crate::protocol_serde::shape_malformed_long::ser_malformed_long_headers(input, builder)?;
  211    211   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  212    212   
            }
  213         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  214         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         213  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         214  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  215    215   
            builder
  216    216   
        };
  217    217   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_long::ser_malformed_long_input(&input)?);
  218    218   
        if let Some(content_length) = body.content_length() {
  219    219   
            let content_length = content_length.to_string();
  220         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         220  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  221    221   
        }
  222    222   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  223    223   
    }
  224    224   
}
  225    225   
#[derive(Debug)]
  226    226   
struct MalformedLongEndpointParamsInterceptor;
  227    227   
  228    228   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedLongEndpointParamsInterceptor {
  229    229   
    fn name(&self) -> &'static str {
  230    230   
        "MalformedLongEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_map.rs

@@ -151,151 +224,224 @@
  171    171   
                _input: &crate::operation::malformed_map::MalformedMapInput,
  172    172   
                output: &mut ::std::string::String,
  173    173   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  174    174   
                use ::std::fmt::Write as _;
  175    175   
                ::std::write!(output, "/MalformedMap").expect("formatting should succeed");
  176    176   
                ::std::result::Result::Ok(())
  177    177   
            }
  178    178   
            #[allow(clippy::unnecessary_wraps)]
  179    179   
            fn update_http_builder(
  180    180   
                input: &crate::operation::malformed_map::MalformedMapInput,
  181         -
                builder: ::http::request::Builder,
  182         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         181  +
                builder: ::http_1x::request::Builder,
         182  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  183    183   
                let mut uri = ::std::string::String::new();
  184    184   
                uri_base(input, &mut uri)?;
  185    185   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  186    186   
            }
  187         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  188         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         187  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         188  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  189    189   
            builder
  190    190   
        };
  191    191   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_map::ser_malformed_map_input(&input)?);
  192    192   
        if let Some(content_length) = body.content_length() {
  193    193   
            let content_length = content_length.to_string();
  194         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         194  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  195    195   
        }
  196    196   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  197    197   
    }
  198    198   
}
  199    199   
#[derive(Debug)]
  200    200   
struct MalformedMapEndpointParamsInterceptor;
  201    201   
  202    202   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedMapEndpointParamsInterceptor {
  203    203   
    fn name(&self) -> &'static str {
  204    204   
        "MalformedMapEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_request_body.rs

@@ -157,157 +232,232 @@
  177    177   
                _input: &crate::operation::malformed_request_body::MalformedRequestBodyInput,
  178    178   
                output: &mut ::std::string::String,
  179    179   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  180    180   
                use ::std::fmt::Write as _;
  181    181   
                ::std::write!(output, "/MalformedRequestBody").expect("formatting should succeed");
  182    182   
                ::std::result::Result::Ok(())
  183    183   
            }
  184    184   
            #[allow(clippy::unnecessary_wraps)]
  185    185   
            fn update_http_builder(
  186    186   
                input: &crate::operation::malformed_request_body::MalformedRequestBodyInput,
  187         -
                builder: ::http::request::Builder,
  188         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         187  +
                builder: ::http_1x::request::Builder,
         188  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  189    189   
                let mut uri = ::std::string::String::new();
  190    190   
                uri_base(input, &mut uri)?;
  191    191   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  192    192   
            }
  193         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  194         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         193  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         194  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  195    195   
            builder
  196    196   
        };
  197    197   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_request_body::ser_malformed_request_body_input(
  198    198   
            &input,
  199    199   
        )?);
  200    200   
        if let Some(content_length) = body.content_length() {
  201    201   
            let content_length = content_length.to_string();
  202         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         202  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  203    203   
        }
  204    204   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  205    205   
    }
  206    206   
}
  207    207   
#[derive(Debug)]
  208    208   
struct MalformedRequestBodyEndpointParamsInterceptor;
  209    209   
  210    210   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedRequestBodyEndpointParamsInterceptor {
  211    211   
    fn name(&self) -> &'static str {
  212    212   
        "MalformedRequestBodyEndpointParamsInterceptor"

tmp-codegen-diff/codegen-client-test/rest_json/rust-client-codegen/src/operation/malformed_short.rs

@@ -175,175 +250,250 @@
  195    195   
                if let ::std::option::Option::Some(inner_2) = &_input.short_in_query {
  196    196   
                    {
  197    197   
                        query.push_kv("shortInQuery", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  198    198   
                    }
  199    199   
                }
  200    200   
                ::std::result::Result::Ok(())
  201    201   
            }
  202    202   
            #[allow(clippy::unnecessary_wraps)]
  203    203   
            fn update_http_builder(
  204    204   
                input: &crate::operation::malformed_short::MalformedShortInput,
  205         -
                builder: ::http::request::Builder,
  206         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         205  +
                builder: ::http_1x::request::Builder,
         206  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207    207   
                let mut uri = ::std::string::String::new();
  208    208   
                uri_base(input, &mut uri)?;
  209    209   
                uri_query(input, &mut uri)?;
  210    210   
                let builder = crate::protocol_serde::shape_malformed_short::ser_malformed_short_headers(input, builder)?;
  211    211   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  212    212   
            }
  213         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  214         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         213  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         214  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  215    215   
            builder
  216    216   
        };
  217    217   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_malformed_short::ser_malformed_short_input(&input)?);
  218    218   
        if let Some(content_length) = body.content_length() {
  219    219   
            let content_length = content_length.to_string();
  220         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         220  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  221    221   
        }
  222    222   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  223    223   
    }
  224    224   
}
  225    225   
#[derive(Debug)]
  226    226   
struct MalformedShortEndpointParamsInterceptor;
  227    227   
  228    228   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for MalformedShortEndpointParamsInterceptor {
  229    229   
    fn name(&self) -> &'static str {
  230    230   
        "MalformedShortEndpointParamsInterceptor"