Client Test

Client Test

rev. 000b37a512bd3be1a17b4f3d5bf60e5446dbc2dd

Files changed:

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/error_serialization_operation.rs

@@ -156,156 +217,215 @@
  176    176   
                builder: ::http::request::Builder,
  177    177   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  178    178   
                let mut uri = ::std::string::String::new();
  179    179   
                uri_base(input, &mut uri)?;
  180    180   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  181    181   
            }
  182    182   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  183    183   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/cbor");
  184    184   
            builder =
  185    185   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  186         -
            builder =
  187         -
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  188    186   
            builder
  189    187   
        };
  190    188   
        let body = ::aws_smithy_types::body::SdkBody::from(
  191    189   
            crate::protocol_serde::shape_error_serialization_operation::ser_error_serialization_operation_input(&input)?,
  192    190   
        );
  193    191   
        if let Some(content_length) = body.content_length() {
  194    192   
            let content_length = content_length.to_string();
  195    193   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  196    194   
        }
  197    195   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/simple_struct_operation.rs

@@ -156,156 +217,215 @@
  176    176   
                builder: ::http::request::Builder,
  177    177   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  178    178   
                let mut uri = ::std::string::String::new();
  179    179   
                uri_base(input, &mut uri)?;
  180    180   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  181    181   
            }
  182    182   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  183    183   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/cbor");
  184    184   
            builder =
  185    185   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  186         -
            builder =
  187         -
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  188    186   
            builder
  189    187   
        };
  190    188   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_simple_struct_operation::ser_simple_struct_operation_input(
  191    189   
            &input,
  192    190   
        )?);
  193    191   
        if let Some(content_length) = body.content_length() {
  194    192   
            let content_length = content_length.to_string();
  195    193   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  196    194   
        }
  197    195   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())

tmp-codegen-diff/codegen-client-test/rpcv2Cbor_extras/rust-client-codegen/src/operation/single_member_struct_operation.rs

@@ -156,156 +217,215 @@
  176    176   
                builder: ::http::request::Builder,
  177    177   
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  178    178   
                let mut uri = ::std::string::String::new();
  179    179   
                uri_base(input, &mut uri)?;
  180    180   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  181    181   
            }
  182    182   
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  183    183   
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/cbor");
  184    184   
            builder =
  185    185   
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("smithy-protocol"), "rpc-v2-cbor");
  186         -
            builder =
  187         -
                _header_serialization_settings.set_default_header(builder, ::http::header::HeaderName::from_static("accept"), "application/cbor");
  188    186   
            builder
  189    187   
        };
  190    188   
        let body = ::aws_smithy_types::body::SdkBody::from(
  191    189   
            crate::protocol_serde::shape_single_member_struct_operation::ser_single_member_struct_operation_input(&input)?,
  192    190   
        );
  193    191   
        if let Some(content_length) = body.content_length() {
  194    192   
            let content_length = content_length.to_string();
  195    193   
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
  196    194   
        }
  197    195   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())