Server Test Python

Server Test Python

rev. 03e6e47f15dfd569240d570d98975ebba692c405 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/Cargo.toml

@@ -1,1 +65,65 @@
    2      2   
[package]
    3      3   
name = "rest_json_extras"
    4      4   
version = "0.0.1"
    5      5   
authors = ["protocoltest@example.com"]
    6      6   
description = "test"
    7      7   
edition = "2021"
    8      8   
    9      9   
[package.metadata.smithy]
   10     10   
codegen-version = "ci"
   11     11   
protocol = "aws.protocols#restJson1"
   12         -
[dependencies.aws-smithy-http]
   13         -
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-http"
   14         -
[dependencies.aws-smithy-http-server]
   15         -
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-http-server"
   16     12   
[dependencies.aws-smithy-http-server-python]
   17     13   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-http-server-python"
   18     14   
[dependencies.aws-smithy-json]
   19     15   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-json"
          16  +
[dependencies.aws-smithy-legacy-http]
          17  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-legacy-http"
          18  +
[dependencies.aws-smithy-legacy-http-server]
          19  +
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-legacy-http-server"
   20     20   
[dependencies.aws-smithy-runtime-api]
   21     21   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-runtime-api"
          22  +
features = ["http-02x"]
   22     23   
[dependencies.aws-smithy-types]
   23     24   
path = "/home/build/workspace/smithy-rs/rust-runtime/aws-smithy-types"
          25  +
features = ["http-body-0-4-x"]
   24     26   
[dependencies.form_urlencoded]
   25     27   
version = "1"
   26     28   
[dependencies.futures-util]
   27     29   
version = "0.3"
   28     30   
[dependencies.http]
   29     31   
version = "0.2.9"
   30     32   
[dependencies.hyper]
   31     33   
version = "0.14.26"
   32     34   
[dependencies.mime]
   33     35   
version = "0.3"
   34     36   
[dependencies.nom]
   35     37   
version = "7"
   36     38   
[dependencies.parking_lot]
   37     39   
version = "0.12"
   38     40   
[dependencies.percent-encoding]
   39     41   
version = "2.0.0"
   40     42   
[dependencies.pin-project-lite]
   41     43   
version = "0.2"
   42     44   
[dependencies.pyo3]
   43     45   
version = "0.20"
   44     46   
[dependencies.pyo3-asyncio]
   45     47   
version = "0.20"
   46     48   
features = ["attributes", "tokio-runtime"]
   47     49   
[dependencies.tower]
   48     50   
version = "0.4"
   49     51   
[dependencies.tracing]
   50     52   
version = "0.1"
   51         -
[dev-dependencies.hyper]
   52         -
version = "0.14.12"
   53     53   
[dev-dependencies.tokio]
   54     54   
version = "1.23.1"
   55     55   
[features]
   56     56   
rt-tokio = ["aws-smithy-types/rt-tokio"]
   57         -
aws-lambda = ["aws-smithy-http-server/aws-lambda"]
   58         -
request-id = ["aws-smithy-http-server/request-id"]
          57  +
aws-lambda = ["aws-smithy-legacy-http-server/aws-lambda"]
          58  +
request-id = ["aws-smithy-legacy-http-server/request-id"]
   59     59   
extension-module = ["pyo3/extension-module"]
   60     60   
default = ["rt-tokio", "request-id", "extension-module"]
   61     61   
[lib]
   62     62   
name = "rest_json_extras"
   63     63   
crate-type = ["cdylib"]
   64     64   
   65     65   

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/python/rest_json_extras/middleware/__init__.pyi

@@ -1,1 +38,38 @@
    1      1   
import typing
    2      2   
    3      3   
class MiddlewareException(Exception):
    4      4   
    """
    5      5   
    Exception that can be thrown from a Python middleware.
    6      6   
    7      7   
    It allows to specify a message and HTTP status code and implementing protocol specific capabilities
    8         -
    to build a [aws_smithy_http_server::response::Response] from it.
           8  +
    to build a [aws_smithy_legacy_http_server::response::Response] from it.
    9      9   
    """
   10     10   
   11     11   
    message: str
   12     12   
   13     13   
    status_code: int
   14     14   
   15     15   
    def __init__(self, message: str, status_code: typing.Optional[int] = ...) -> None:
   16     16   
        ...
   17     17   
   18     18   

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/input.rs

@@ -967,967 +1027,1027 @@
  987    987   
            path: ::std::string::String,
  988    988   
        ) -> crate::model::ValidationExceptionField {
  989    989   
            match self {
  990    990   
                ConstraintViolation::Enum(inner) => {
  991    991   
                    inner.as_validation_exception_field(path + "/enum")
  992    992   
                }
  993    993   
            }
  994    994   
        }
  995    995   
    }
  996    996   
    impl ::std::convert::From<ConstraintViolation>
  997         -
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
         997  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
  998    998   
    {
  999    999   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1000   1000   
            let first_validation_exception_field =
 1001   1001   
                constraint_violation.as_validation_exception_field("".to_owned());
 1002   1002   
            let validation_exception = crate::error::ValidationException {
 1003   1003   
                message: format!(
 1004   1004   
                    "1 validation error detected. {}",
 1005   1005   
                    &first_validation_exception_field.message
 1006   1006   
                ),
 1007   1007   
                field_list: Some(vec![first_validation_exception_field]),
@@ -1187,1187 +1247,1247 @@
 1207   1207   
            path: ::std::string::String,
 1208   1208   
        ) -> crate::model::ValidationExceptionField {
 1209   1209   
            match self {
 1210   1210   
                ConstraintViolation::Map(inner) => {
 1211   1211   
                    inner.as_validation_exception_field(path + "/map")
 1212   1212   
                }
 1213   1213   
            }
 1214   1214   
        }
 1215   1215   
    }
 1216   1216   
    impl ::std::convert::From<ConstraintViolation>
 1217         -
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1217  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1218   1218   
    {
 1219   1219   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1220   1220   
            let first_validation_exception_field =
 1221   1221   
                constraint_violation.as_validation_exception_field("".to_owned());
 1222   1222   
            let validation_exception = crate::error::ValidationException {
 1223   1223   
                message: format!(
 1224   1224   
                    "1 validation error detected. {}",
 1225   1225   
                    &first_validation_exception_field.message
 1226   1226   
                ),
 1227   1227   
                field_list: Some(vec![first_validation_exception_field]),
@@ -1380,1380 +1440,1440 @@
 1400   1400   
                    ),
 1401   1401   
                    path: path + "/enum",
 1402   1402   
                },
 1403   1403   
                ConstraintViolation::Enum(inner) => {
 1404   1404   
                    inner.as_validation_exception_field(path + "/enum")
 1405   1405   
                }
 1406   1406   
            }
 1407   1407   
        }
 1408   1408   
    }
 1409   1409   
    impl ::std::convert::From<ConstraintViolation>
 1410         -
        for ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection
        1410  +
        for ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection
 1411   1411   
    {
 1412   1412   
        fn from(constraint_violation: ConstraintViolation) -> Self {
 1413   1413   
            let first_validation_exception_field =
 1414   1414   
                constraint_violation.as_validation_exception_field("".to_owned());
 1415   1415   
            let validation_exception = crate::error::ValidationException {
 1416   1416   
                message: format!(
 1417   1417   
                    "1 validation error detected. {}",
 1418   1418   
                    &first_validation_exception_field.message
 1419   1419   
                ),
 1420   1420   
                field_list: Some(vec![first_validation_exception_field]),

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/lib.rs

@@ -29,29 +128,129 @@
   49     49   
//!
   50     50   
//! # let app = RestJsonExtras::builder(
   51     51   
//! #     RestJsonExtrasConfig::builder()
   52     52   
//! #         .build()
   53     53   
//! # ).build_unchecked();
   54     54   
//! let server = app.into_make_service();
   55     55   
//! let bind: SocketAddr = "127.0.0.1:6969".parse()
   56     56   
//!     .expect("unable to parse the server bind address and port");
   57     57   
//! ::hyper::Server::bind(&bind).serve(server).await.unwrap();
   58     58   
//! # }
          59  +
//!
   59     60   
//! ```
   60     61   
//!
   61     62   
//! ### Running on Lambda
   62     63   
//!
   63     64   
//! ```rust,ignore
   64     65   
//! use rest_json_extras::server::routing::LambdaHandler;
   65     66   
//! use rest_json_extras::RestJsonExtras;
   66     67   
//!
   67     68   
//! # async fn dummy() {
   68     69   
//! # let app = RestJsonExtras::builder(
   69     70   
//! #     RestJsonExtrasConfig::builder()
   70     71   
//! #         .build()
   71     72   
//! # ).build_unchecked();
   72     73   
//! let handler = LambdaHandler::new(app);
   73     74   
//! lambda_http::run(handler).await.unwrap();
   74     75   
//! # }
   75     76   
//! ```
   76     77   
//!
   77     78   
//! # Building the RestJsonExtras
   78     79   
//!
   79     80   
//! To construct [`RestJsonExtras`] we use [`RestJsonExtrasBuilder`] returned by [`RestJsonExtras::builder`].
   80     81   
//!
   81     82   
//! ## Plugins
   82     83   
//!
   83     84   
//! The [`RestJsonExtras::builder`] method, returning [`RestJsonExtrasBuilder`],
   84     85   
//! accepts a config object on which plugins can be registered.
   85     86   
//! Plugins allow you to build middleware which is aware of the operation it is being applied to.
   86     87   
//!
   87     88   
//! ```rust,no_run
   88     89   
//! # use rest_json_extras::server::plugin::IdentityPlugin as LoggingPlugin;
   89     90   
//! # use rest_json_extras::server::plugin::IdentityPlugin as MetricsPlugin;
   90     91   
//! # use ::hyper::Body;
   91     92   
//! use rest_json_extras::server::plugin::HttpPlugins;
   92     93   
//! use rest_json_extras::{RestJsonExtras, RestJsonExtrasConfig, RestJsonExtrasBuilder};
   93     94   
//!
   94     95   
//! let http_plugins = HttpPlugins::new()
   95     96   
//!         .push(LoggingPlugin)
   96     97   
//!         .push(MetricsPlugin);
   97     98   
//! let config = RestJsonExtrasConfig::builder().build();
   98         -
//! let builder: RestJsonExtrasBuilder<Body, _, _, _> = RestJsonExtras::builder(config);
          99  +
//! let builder: RestJsonExtrasBuilder<::hyper::Body, _, _, _> = RestJsonExtras::builder(config);
   99    100   
//! ```
  100    101   
//!
  101    102   
//! Check out [`crate::server::plugin`] to learn more about plugins.
  102    103   
//!
  103    104   
//! ## Handlers
  104    105   
//!
  105    106   
//! [`RestJsonExtrasBuilder`] provides a setter method for each operation in your Smithy model. The setter methods expect an async function as input, matching the signature for the corresponding operation in your Smithy model.
  106    107   
//! We call these async functions **handlers**. This is where your application business logic lives.
  107    108   
//!
  108    109   
//! Every handler must take an `Input`, and optional [`extractor arguments`](crate::server::request), while returning:
@@ -219,220 +318,319 @@
  239    240   
//!     todo!()
  240    241   
//! }
  241    242   
//!
  242    243   
//! async fn string_payload(input: input::StringPayloadInput) -> Result<output::StringPayloadOutput, error::StringPayloadError> {
  243    244   
//!     todo!()
  244    245   
//! }
  245    246   
//!
  246    247   
//! ```
  247    248   
//!
  248    249   
//! [`serve`]: https://docs.rs/hyper/0.14.16/hyper/server/struct.Builder.html#method.serve
         250  +
//! [hyper server]: https://docs.rs/hyper/0.14.26/hyper/server/index.html
  249    251   
//! [`tower::make::MakeService`]: https://docs.rs/tower/latest/tower/make/trait.MakeService.html
  250    252   
//! [HTTP binding traits]: https://smithy.io/2.0/spec/http-bindings.html
  251    253   
//! [operations]: https://smithy.io/2.0/spec/service-types.html#operation
  252         -
//! [hyper server]: https://docs.rs/hyper/latest/hyper/server/index.html
  253    254   
//! [Service]: https://docs.rs/tower-service/latest/tower_service/trait.Service.html
  254    255   
pub use crate::service::{
  255    256   
    MissingOperationsError, RestJsonExtras, RestJsonExtrasBuilder, RestJsonExtrasConfig,
  256    257   
    RestJsonExtrasConfigBuilder,
  257    258   
};
  258    259   
  259    260   
/// Contains the types that are re-exported from the `aws-smithy-http-server` crate.
  260    261   
pub mod server {
  261    262   
    // Re-export all types from the `aws-smithy-http-server` crate.
  262         -
    pub use ::aws_smithy_http_server::*;
         263  +
    pub use ::aws_smithy_legacy_http_server::*;
  263    264   
}
  264    265   
  265    266   
/// Crate version number.
  266    267   
pub static PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
  267    268   
  268    269   
/// Constrained types for constrained shapes.
  269    270   
mod constrained;
  270    271   
  271    272   
/// All error types that operations can return. Documentation on these types is copied from the model.
  272    273   
pub mod error;
  273    274   
  274    275   
/// Input structures for operations. Documentation on these types is copied from the model.
  275    276   
pub mod input;
  276    277   
  277    278   
/// Data structures used by operation inputs/outputs. Documentation on these types is copied from the model.
  278    279   
pub mod model;
  279    280   
  280    281   
/// All operations that this crate can perform.
  281    282   
pub mod operation;
  282    283   
  283    284   
/// A collection of types representing each operation defined in the service closure.
  284    285   
///
  285         -
/// The [plugin system](::aws_smithy_http_server::plugin) makes use of these
         286  +
/// The [plugin system](::aws_smithy_legacy_http_server::plugin) makes use of these
  286    287   
/// [zero-sized types](https://doc.rust-lang.org/nomicon/exotic-sizes.html#zero-sized-types-zsts) (ZSTs) to
  287         -
/// parameterize [`Plugin`](::aws_smithy_http_server::plugin::Plugin) implementations. Their traits, such as
  288         -
/// [`OperationShape`](::aws_smithy_http_server::operation::OperationShape), can be used to provide
         288  +
/// parameterize [`Plugin`](::aws_smithy_legacy_http_server::plugin::Plugin) implementations. Their traits, such as
         289  +
/// [`OperationShape`](::aws_smithy_legacy_http_server::operation::OperationShape), can be used to provide
  289    290   
/// operation specific information to the [`Layer`](::tower::Layer) being applied.
  290    291   
pub mod operation_shape;
  291    292   
  292    293   
/// Output structures for operations. Documentation on these types is copied from the model.
  293    294   
pub mod output;
  294    295   
  295    296   
/// Export PyO3 symbols in the shared library
  296    297   
pub mod python_module_export;
  297    298   
  298    299   
/// Operation adapters that delegate to Python handlers.

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/operation.rs

@@ -1,1 +1212,1192 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
::pin_project_lite::pin_project! {
    3      3   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
    4      4   
    /// [`HttpQueryParamsOnlyOperationInput`](crate::input::HttpQueryParamsOnlyOperationInput) using modelled bindings.
    5      5   
    pub struct HttpQueryParamsOnlyOperationInputFuture {
    6         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpQueryParamsOnlyOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
           6  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpQueryParamsOnlyOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
    7      7   
    }
    8      8   
}
    9      9   
   10     10   
impl std::future::Future for HttpQueryParamsOnlyOperationInputFuture {
   11     11   
    type Output = Result<
   12     12   
        crate::input::HttpQueryParamsOnlyOperationInput,
   13         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
          13  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
   14     14   
    >;
   15     15   
   16     16   
    fn poll(
   17     17   
        self: std::pin::Pin<&mut Self>,
   18     18   
        cx: &mut std::task::Context<'_>,
   19     19   
    ) -> std::task::Poll<Self::Output> {
   20     20   
        let this = self.project();
   21     21   
        this.inner.as_mut().poll(cx)
   22     22   
    }
   23     23   
}
   24     24   
   25     25   
impl<B>
   26         -
    ::aws_smithy_http_server::request::FromRequest<
   27         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
          26  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
          27  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   28     28   
        B,
   29     29   
    > for crate::input::HttpQueryParamsOnlyOperationInput
   30     30   
where
   31         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          31  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   32     32   
    B: 'static,
   33     33   
   34     34   
    B::Data: Send,
   35         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   36         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          35  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          36  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   37     37   
{
   38         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
          38  +
    type Rejection =
          39  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
   39     40   
    type Future = HttpQueryParamsOnlyOperationInputFuture;
   40     41   
   41     42   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
   42     43   
        let fut = async move {
   43         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
          44  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
   44     45   
                request.headers(),
   45     46   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
   46     47   
            ) {
   47         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
          48  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
   48     49   
            }
   49     50   
            crate::protocol_serde::shape_http_query_params_only_operation::de_http_query_params_only_operation_http_request(request)
   50     51   
                            .await
   51     52   
        };
   52     53   
        use ::futures_util::future::TryFutureExt;
   53         -
        let fut = fut.map_err(
   54         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
          54  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
   55     55   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
   56         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
   57         -
                    e,
   58         -
                )
   59         -
            },
   60         -
        );
          56  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
          57  +
                    });
   61     58   
        HttpQueryParamsOnlyOperationInputFuture {
   62     59   
            inner: Box::pin(fut),
   63     60   
        }
   64     61   
    }
   65     62   
}
   66     63   
impl
   67         -
    ::aws_smithy_http_server::response::IntoResponse<
   68         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
          64  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
          65  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   69     66   
    > for crate::output::HttpQueryParamsOnlyOperationOutput
   70     67   
{
   71         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
          68  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
   72     69   
        match crate::protocol_serde::shape_http_query_params_only_operation::ser_http_query_params_only_operation_http_response(self) {
   73     70   
                        Ok(response) => response,
   74     71   
                        Err(e) => {
   75     72   
                            ::tracing::error!(error = %e, "failed to serialize response");
   76         -
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
          73  +
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
   77     74   
                        }
   78     75   
                    }
   79     76   
    }
   80     77   
}
   81     78   
impl
   82         -
    ::aws_smithy_http_server::response::IntoResponse<
   83         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
          79  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
          80  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
   84     81   
    > for crate::error::HttpQueryParamsOnlyOperationError
   85     82   
{
   86         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
          83  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
   87     84   
        match crate::protocol_serde::shape_http_query_params_only_operation::ser_http_query_params_only_operation_http_error(&self) {
   88     85   
            Ok(mut response) => {
   89         -
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
          86  +
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
   90     87   
                response
   91     88   
            },
   92     89   
            Err(e) => {
   93     90   
                ::tracing::error!(error = %e, "failed to serialize response");
   94         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
          91  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
   95     92   
            }
   96     93   
        }
   97     94   
    }
   98     95   
}
   99     96   
  100     97   
::pin_project_lite::pin_project! {
  101     98   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  102     99   
    /// [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput) using modelled bindings.
  103    100   
    pub struct QueryPrecedenceInputFuture {
  104         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryPrecedenceInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         101  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryPrecedenceInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  105    102   
    }
  106    103   
}
  107    104   
  108    105   
impl std::future::Future for QueryPrecedenceInputFuture {
  109    106   
    type Output = Result<
  110    107   
        crate::input::QueryPrecedenceInput,
  111         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         108  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  112    109   
    >;
  113    110   
  114    111   
    fn poll(
  115    112   
        self: std::pin::Pin<&mut Self>,
  116    113   
        cx: &mut std::task::Context<'_>,
  117    114   
    ) -> std::task::Poll<Self::Output> {
  118    115   
        let this = self.project();
  119    116   
        this.inner.as_mut().poll(cx)
  120    117   
    }
  121    118   
}
  122    119   
  123    120   
impl<B>
  124         -
    ::aws_smithy_http_server::request::FromRequest<
  125         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         121  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         122  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  126    123   
        B,
  127    124   
    > for crate::input::QueryPrecedenceInput
  128    125   
where
  129         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         126  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  130    127   
    B: 'static,
  131    128   
  132    129   
    B::Data: Send,
  133         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  134         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         130  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         131  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  135    132   
{
  136         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         133  +
    type Rejection =
         134  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  137    135   
    type Future = QueryPrecedenceInputFuture;
  138    136   
  139    137   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  140    138   
        let fut = async move {
  141         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         139  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  142    140   
                request.headers(),
  143    141   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  144    142   
            ) {
  145         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         143  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  146    144   
            }
  147    145   
            crate::protocol_serde::shape_query_precedence::de_query_precedence_http_request(request)
  148    146   
                .await
  149    147   
        };
  150    148   
        use ::futures_util::future::TryFutureExt;
  151         -
        let fut = fut.map_err(
  152         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         149  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  153    150   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  154         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  155         -
                    e,
  156         -
                )
  157         -
            },
  158         -
        );
         151  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         152  +
                    });
  159    153   
        QueryPrecedenceInputFuture {
  160    154   
            inner: Box::pin(fut),
  161    155   
        }
  162    156   
    }
  163    157   
}
  164    158   
impl
  165         -
    ::aws_smithy_http_server::response::IntoResponse<
  166         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         159  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         160  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  167    161   
    > for crate::output::QueryPrecedenceOutput
  168    162   
{
  169         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         163  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  170    164   
        match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_response(
  171    165   
            self,
  172    166   
        ) {
  173    167   
            Ok(response) => response,
  174    168   
            Err(e) => {
  175    169   
                ::tracing::error!(error = %e, "failed to serialize response");
  176         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         170  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  177    171   
            }
  178    172   
        }
  179    173   
    }
  180    174   
}
  181    175   
impl
  182         -
    ::aws_smithy_http_server::response::IntoResponse<
  183         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         176  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         177  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  184    178   
    > for crate::error::QueryPrecedenceError
  185    179   
{
  186         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         180  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  187    181   
        match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_error(&self)
  188    182   
        {
  189    183   
            Ok(mut response) => {
  190    184   
                response.extensions_mut().insert(
  191         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
         185  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         186  +
                        self.name(),
         187  +
                    ),
  192    188   
                );
  193    189   
                response
  194    190   
            }
  195    191   
            Err(e) => {
  196    192   
                ::tracing::error!(error = %e, "failed to serialize response");
  197         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         193  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  198    194   
            }
  199    195   
        }
  200    196   
    }
  201    197   
}
  202    198   
  203    199   
::pin_project_lite::pin_project! {
  204    200   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  205    201   
    /// [`EmptyStructWithContentOnWireOpInput`](crate::input::EmptyStructWithContentOnWireOpInput) using modelled bindings.
  206    202   
    pub struct EmptyStructWithContentOnWireOpInputFuture {
  207         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EmptyStructWithContentOnWireOpInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         203  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EmptyStructWithContentOnWireOpInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  208    204   
    }
  209    205   
}
  210    206   
  211    207   
impl std::future::Future for EmptyStructWithContentOnWireOpInputFuture {
  212    208   
    type Output = Result<
  213    209   
        crate::input::EmptyStructWithContentOnWireOpInput,
  214         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         210  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  215    211   
    >;
  216    212   
  217    213   
    fn poll(
  218    214   
        self: std::pin::Pin<&mut Self>,
  219    215   
        cx: &mut std::task::Context<'_>,
  220    216   
    ) -> std::task::Poll<Self::Output> {
  221    217   
        let this = self.project();
  222    218   
        this.inner.as_mut().poll(cx)
  223    219   
    }
  224    220   
}
  225    221   
  226    222   
impl<B>
  227         -
    ::aws_smithy_http_server::request::FromRequest<
  228         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         223  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         224  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  229    225   
        B,
  230    226   
    > for crate::input::EmptyStructWithContentOnWireOpInput
  231    227   
where
  232         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         228  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  233    229   
    B: 'static,
  234    230   
  235    231   
    B::Data: Send,
  236         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  237         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         232  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         233  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  238    234   
{
  239         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         235  +
    type Rejection =
         236  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  240    237   
    type Future = EmptyStructWithContentOnWireOpInputFuture;
  241    238   
  242    239   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  243    240   
        let fut = async move {
  244         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         241  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  245    242   
                request.headers(),
  246    243   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  247    244   
            ) {
  248         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         245  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  249    246   
            }
  250    247   
            crate::protocol_serde::shape_empty_struct_with_content_on_wire_op::de_empty_struct_with_content_on_wire_op_http_request(request)
  251    248   
                            .await
  252    249   
        };
  253    250   
        use ::futures_util::future::TryFutureExt;
  254         -
        let fut = fut.map_err(
  255         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         251  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  256    252   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  257         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  258         -
                    e,
  259         -
                )
  260         -
            },
  261         -
        );
         253  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         254  +
                    });
  262    255   
        EmptyStructWithContentOnWireOpInputFuture {
  263    256   
            inner: Box::pin(fut),
  264    257   
        }
  265    258   
    }
  266    259   
}
  267    260   
impl
  268         -
    ::aws_smithy_http_server::response::IntoResponse<
  269         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         261  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         262  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  270    263   
    > for crate::output::EmptyStructWithContentOnWireOpOutput
  271    264   
{
  272         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         265  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  273    266   
        match crate::protocol_serde::shape_empty_struct_with_content_on_wire_op::ser_empty_struct_with_content_on_wire_op_http_response(self) {
  274    267   
                        Ok(response) => response,
  275    268   
                        Err(e) => {
  276    269   
                            ::tracing::error!(error = %e, "failed to serialize response");
  277         -
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         270  +
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  278    271   
                        }
  279    272   
                    }
  280    273   
    }
  281    274   
}
  282    275   
impl
  283         -
    ::aws_smithy_http_server::response::IntoResponse<
  284         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         276  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         277  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  285    278   
    > for crate::error::EmptyStructWithContentOnWireOpError
  286    279   
{
  287         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         280  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  288    281   
        match crate::protocol_serde::shape_empty_struct_with_content_on_wire_op::ser_empty_struct_with_content_on_wire_op_http_error(&self) {
  289    282   
            Ok(mut response) => {
  290         -
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
         283  +
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
  291    284   
                response
  292    285   
            },
  293    286   
            Err(e) => {
  294    287   
                ::tracing::error!(error = %e, "failed to serialize response");
  295         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         288  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  296    289   
            }
  297    290   
        }
  298    291   
    }
  299    292   
}
  300    293   
  301    294   
::pin_project_lite::pin_project! {
  302    295   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  303    296   
    /// [`CaseInsensitiveErrorOperationInput`](crate::input::CaseInsensitiveErrorOperationInput) using modelled bindings.
  304    297   
    pub struct CaseInsensitiveErrorOperationInputFuture {
  305         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CaseInsensitiveErrorOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         298  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CaseInsensitiveErrorOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  306    299   
    }
  307    300   
}
  308    301   
  309    302   
impl std::future::Future for CaseInsensitiveErrorOperationInputFuture {
  310    303   
    type Output = Result<
  311    304   
        crate::input::CaseInsensitiveErrorOperationInput,
  312         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         305  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  313    306   
    >;
  314    307   
  315    308   
    fn poll(
  316    309   
        self: std::pin::Pin<&mut Self>,
  317    310   
        cx: &mut std::task::Context<'_>,
  318    311   
    ) -> std::task::Poll<Self::Output> {
  319    312   
        let this = self.project();
  320    313   
        this.inner.as_mut().poll(cx)
  321    314   
    }
  322    315   
}
  323    316   
  324    317   
impl<B>
  325         -
    ::aws_smithy_http_server::request::FromRequest<
  326         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         318  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         319  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  327    320   
        B,
  328    321   
    > for crate::input::CaseInsensitiveErrorOperationInput
  329    322   
where
  330         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         323  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  331    324   
    B: 'static,
  332    325   
  333    326   
    B::Data: Send,
  334         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  335         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         327  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         328  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  336    329   
{
  337         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         330  +
    type Rejection =
         331  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  338    332   
    type Future = CaseInsensitiveErrorOperationInputFuture;
  339    333   
  340    334   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  341    335   
        let fut = async move {
  342         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         336  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  343    337   
                request.headers(),
  344    338   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  345    339   
            ) {
  346         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         340  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  347    341   
            }
  348    342   
            crate::protocol_serde::shape_case_insensitive_error_operation::de_case_insensitive_error_operation_http_request(request)
  349    343   
                            .await
  350    344   
        };
  351    345   
        use ::futures_util::future::TryFutureExt;
  352         -
        let fut = fut.map_err(
  353         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         346  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  354    347   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  355         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  356         -
                    e,
  357         -
                )
  358         -
            },
  359         -
        );
         348  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         349  +
                    });
  360    350   
        CaseInsensitiveErrorOperationInputFuture {
  361    351   
            inner: Box::pin(fut),
  362    352   
        }
  363    353   
    }
  364    354   
}
  365    355   
impl
  366         -
    ::aws_smithy_http_server::response::IntoResponse<
  367         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         356  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         357  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  368    358   
    > for crate::output::CaseInsensitiveErrorOperationOutput
  369    359   
{
  370         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         360  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  371    361   
        match crate::protocol_serde::shape_case_insensitive_error_operation::ser_case_insensitive_error_operation_http_response(self) {
  372    362   
                        Ok(response) => response,
  373    363   
                        Err(e) => {
  374    364   
                            ::tracing::error!(error = %e, "failed to serialize response");
  375         -
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         365  +
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  376    366   
                        }
  377    367   
                    }
  378    368   
    }
  379    369   
}
  380    370   
impl
  381         -
    ::aws_smithy_http_server::response::IntoResponse<
  382         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         371  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         372  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  383    373   
    > for crate::error::CaseInsensitiveErrorOperationError
  384    374   
{
  385         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         375  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  386    376   
        match crate::protocol_serde::shape_case_insensitive_error_operation::ser_case_insensitive_error_operation_http_error(&self) {
  387    377   
            Ok(mut response) => {
  388         -
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
         378  +
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
  389    379   
                response
  390    380   
            },
  391    381   
            Err(e) => {
  392    382   
                ::tracing::error!(error = %e, "failed to serialize response");
  393         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         383  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  394    384   
            }
  395    385   
        }
  396    386   
    }
  397    387   
}
  398    388   
  399    389   
::pin_project_lite::pin_project! {
  400    390   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  401    391   
    /// [`NullInNonSparseInput`](crate::input::NullInNonSparseInput) using modelled bindings.
  402    392   
    pub struct NullInNonSparseInputFuture {
  403         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullInNonSparseInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         393  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullInNonSparseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  404    394   
    }
  405    395   
}
  406    396   
  407    397   
impl std::future::Future for NullInNonSparseInputFuture {
  408    398   
    type Output = Result<
  409    399   
        crate::input::NullInNonSparseInput,
  410         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         400  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  411    401   
    >;
  412    402   
  413    403   
    fn poll(
  414    404   
        self: std::pin::Pin<&mut Self>,
  415    405   
        cx: &mut std::task::Context<'_>,
  416    406   
    ) -> std::task::Poll<Self::Output> {
  417    407   
        let this = self.project();
  418    408   
        this.inner.as_mut().poll(cx)
  419    409   
    }
  420    410   
}
  421    411   
  422    412   
impl<B>
  423         -
    ::aws_smithy_http_server::request::FromRequest<
  424         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         413  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         414  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  425    415   
        B,
  426    416   
    > for crate::input::NullInNonSparseInput
  427    417   
where
  428         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         418  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  429    419   
    B: 'static,
  430    420   
  431    421   
    B::Data: Send,
  432         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  433         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         422  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         423  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  434    424   
{
  435         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         425  +
    type Rejection =
         426  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  436    427   
    type Future = NullInNonSparseInputFuture;
  437    428   
  438    429   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  439    430   
        let fut = async move {
  440         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         431  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  441    432   
                request.headers(),
  442    433   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  443    434   
            ) {
  444         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         435  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  445    436   
            }
  446    437   
            crate::protocol_serde::shape_null_in_non_sparse::de_null_in_non_sparse_http_request(
  447    438   
                request,
  448    439   
            )
  449    440   
            .await
  450    441   
        };
  451    442   
        use ::futures_util::future::TryFutureExt;
  452         -
        let fut = fut.map_err(
  453         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         443  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  454    444   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  455         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  456         -
                    e,
  457         -
                )
  458         -
            },
  459         -
        );
         445  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         446  +
                    });
  460    447   
        NullInNonSparseInputFuture {
  461    448   
            inner: Box::pin(fut),
  462    449   
        }
  463    450   
    }
  464    451   
}
  465    452   
impl
  466         -
    ::aws_smithy_http_server::response::IntoResponse<
  467         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         453  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         454  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  468    455   
    > for crate::output::NullInNonSparseOutput
  469    456   
{
  470         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         457  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  471    458   
        match crate::protocol_serde::shape_null_in_non_sparse::ser_null_in_non_sparse_http_response(
  472    459   
            self,
  473    460   
        ) {
  474    461   
            Ok(response) => response,
  475    462   
            Err(e) => {
  476    463   
                ::tracing::error!(error = %e, "failed to serialize response");
  477         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         464  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  478    465   
            }
  479    466   
        }
  480    467   
    }
  481    468   
}
  482    469   
impl
  483         -
    ::aws_smithy_http_server::response::IntoResponse<
  484         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         470  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         471  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  485    472   
    > for crate::error::NullInNonSparseError
  486    473   
{
  487         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         474  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  488    475   
        match crate::protocol_serde::shape_null_in_non_sparse::ser_null_in_non_sparse_http_error(
  489    476   
            &self,
  490    477   
        ) {
  491    478   
            Ok(mut response) => {
  492    479   
                response.extensions_mut().insert(
  493         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
         480  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         481  +
                        self.name(),
         482  +
                    ),
  494    483   
                );
  495    484   
                response
  496    485   
            }
  497    486   
            Err(e) => {
  498    487   
                ::tracing::error!(error = %e, "failed to serialize response");
  499         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         488  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  500    489   
            }
  501    490   
        }
  502    491   
    }
  503    492   
}
  504    493   
  505    494   
::pin_project_lite::pin_project! {
  506    495   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  507    496   
    /// [`EscapedStringValuesInput`](crate::input::EscapedStringValuesInput) using modelled bindings.
  508    497   
    pub struct EscapedStringValuesInputFuture {
  509         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EscapedStringValuesInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         498  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EscapedStringValuesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  510    499   
    }
  511    500   
}
  512    501   
  513    502   
impl std::future::Future for EscapedStringValuesInputFuture {
  514    503   
    type Output = Result<
  515    504   
        crate::input::EscapedStringValuesInput,
  516         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         505  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  517    506   
    >;
  518    507   
  519    508   
    fn poll(
  520    509   
        self: std::pin::Pin<&mut Self>,
  521    510   
        cx: &mut std::task::Context<'_>,
  522    511   
    ) -> std::task::Poll<Self::Output> {
  523    512   
        let this = self.project();
  524    513   
        this.inner.as_mut().poll(cx)
  525    514   
    }
  526    515   
}
  527    516   
  528    517   
impl<B>
  529         -
    ::aws_smithy_http_server::request::FromRequest<
  530         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         518  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         519  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  531    520   
        B,
  532    521   
    > for crate::input::EscapedStringValuesInput
  533    522   
where
  534         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         523  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  535    524   
    B: 'static,
  536    525   
  537    526   
    B::Data: Send,
  538         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  539         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         527  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         528  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  540    529   
{
  541         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         530  +
    type Rejection =
         531  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  542    532   
    type Future = EscapedStringValuesInputFuture;
  543    533   
  544    534   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  545    535   
        let fut = async move {
  546         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         536  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  547    537   
                request.headers(),
  548    538   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  549    539   
            ) {
  550         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         540  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  551    541   
            }
  552    542   
            crate::protocol_serde::shape_escaped_string_values::de_escaped_string_values_http_request(request)
  553    543   
                            .await
  554    544   
        };
  555    545   
        use ::futures_util::future::TryFutureExt;
  556         -
        let fut = fut.map_err(
  557         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         546  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  558    547   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  559         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  560         -
                    e,
  561         -
                )
  562         -
            },
  563         -
        );
         548  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         549  +
                    });
  564    550   
        EscapedStringValuesInputFuture {
  565    551   
            inner: Box::pin(fut),
  566    552   
        }
  567    553   
    }
  568    554   
}
  569    555   
impl
  570         -
    ::aws_smithy_http_server::response::IntoResponse<
  571         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         556  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         557  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  572    558   
    > for crate::output::EscapedStringValuesOutput
  573    559   
{
  574         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         560  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  575    561   
        match crate::protocol_serde::shape_escaped_string_values::ser_escaped_string_values_http_response(self) {
  576    562   
                        Ok(response) => response,
  577    563   
                        Err(e) => {
  578    564   
                            ::tracing::error!(error = %e, "failed to serialize response");
  579         -
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         565  +
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  580    566   
                        }
  581    567   
                    }
  582    568   
    }
  583    569   
}
  584    570   
impl
  585         -
    ::aws_smithy_http_server::response::IntoResponse<
  586         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         571  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         572  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  587    573   
    > for crate::error::EscapedStringValuesError
  588    574   
{
  589         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         575  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  590    576   
        match crate::protocol_serde::shape_escaped_string_values::ser_escaped_string_values_http_error(&self) {
  591    577   
            Ok(mut response) => {
  592         -
                response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
         578  +
                response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
  593    579   
                response
  594    580   
            },
  595    581   
            Err(e) => {
  596    582   
                ::tracing::error!(error = %e, "failed to serialize response");
  597         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         583  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  598    584   
            }
  599    585   
        }
  600    586   
    }
  601    587   
}
  602    588   
  603    589   
::pin_project_lite::pin_project! {
  604    590   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  605    591   
    /// [`PrimitiveIntOpInput`](crate::input::PrimitiveIntOpInput) using modelled bindings.
  606    592   
    pub struct PrimitiveIntOpInputFuture {
  607         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PrimitiveIntOpInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         593  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PrimitiveIntOpInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  608    594   
    }
  609    595   
}
  610    596   
  611    597   
impl std::future::Future for PrimitiveIntOpInputFuture {
  612    598   
    type Output = Result<
  613    599   
        crate::input::PrimitiveIntOpInput,
  614         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         600  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  615    601   
    >;
  616    602   
  617    603   
    fn poll(
  618    604   
        self: std::pin::Pin<&mut Self>,
  619    605   
        cx: &mut std::task::Context<'_>,
  620    606   
    ) -> std::task::Poll<Self::Output> {
  621    607   
        let this = self.project();
  622    608   
        this.inner.as_mut().poll(cx)
  623    609   
    }
  624    610   
}
  625    611   
  626    612   
impl<B>
  627         -
    ::aws_smithy_http_server::request::FromRequest<
  628         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         613  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         614  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  629    615   
        B,
  630    616   
    > for crate::input::PrimitiveIntOpInput
  631    617   
where
  632         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         618  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  633    619   
    B: 'static,
  634    620   
  635    621   
    B::Data: Send,
  636         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  637         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         622  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         623  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  638    624   
{
  639         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         625  +
    type Rejection =
         626  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  640    627   
    type Future = PrimitiveIntOpInputFuture;
  641    628   
  642    629   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  643    630   
        let fut = async move {
  644         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         631  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  645    632   
                request.headers(),
  646    633   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  647    634   
            ) {
  648         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         635  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  649    636   
            }
  650    637   
            crate::protocol_serde::shape_primitive_int_op::de_primitive_int_op_http_request(request)
  651    638   
                .await
  652    639   
        };
  653    640   
        use ::futures_util::future::TryFutureExt;
  654         -
        let fut = fut.map_err(
  655         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         641  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  656    642   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  657         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  658         -
                    e,
  659         -
                )
  660         -
            },
  661         -
        );
         643  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         644  +
                    });
  662    645   
        PrimitiveIntOpInputFuture {
  663    646   
            inner: Box::pin(fut),
  664    647   
        }
  665    648   
    }
  666    649   
}
  667    650   
impl
  668         -
    ::aws_smithy_http_server::response::IntoResponse<
  669         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         651  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         652  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  670    653   
    > for crate::output::PrimitiveIntOpOutput
  671    654   
{
  672         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         655  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  673    656   
        match crate::protocol_serde::shape_primitive_int_op::ser_primitive_int_op_http_response(
  674    657   
            self,
  675    658   
        ) {
  676    659   
            Ok(response) => response,
  677    660   
            Err(e) => {
  678    661   
                ::tracing::error!(error = %e, "failed to serialize response");
  679         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         662  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  680    663   
            }
  681    664   
        }
  682    665   
    }
  683    666   
}
  684    667   
impl
  685         -
    ::aws_smithy_http_server::response::IntoResponse<
  686         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         668  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         669  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  687    670   
    > for crate::error::PrimitiveIntOpError
  688    671   
{
  689         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         672  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  690    673   
        match crate::protocol_serde::shape_primitive_int_op::ser_primitive_int_op_http_error(&self)
  691    674   
        {
  692    675   
            Ok(mut response) => {
  693    676   
                response.extensions_mut().insert(
  694         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
         677  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         678  +
                        self.name(),
         679  +
                    ),
  695    680   
                );
  696    681   
                response
  697    682   
            }
  698    683   
            Err(e) => {
  699    684   
                ::tracing::error!(error = %e, "failed to serialize response");
  700         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         685  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  701    686   
            }
  702    687   
        }
  703    688   
    }
  704    689   
}
  705    690   
  706    691   
::pin_project_lite::pin_project! {
  707    692   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  708    693   
    /// [`MapWithEnumKeyOpInput`](crate::input::MapWithEnumKeyOpInput) using modelled bindings.
  709    694   
    pub struct MapWithEnumKeyOpInputFuture {
  710         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MapWithEnumKeyOpInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         695  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MapWithEnumKeyOpInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  711    696   
    }
  712    697   
}
  713    698   
  714    699   
impl std::future::Future for MapWithEnumKeyOpInputFuture {
  715    700   
    type Output = Result<
  716    701   
        crate::input::MapWithEnumKeyOpInput,
  717         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         702  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  718    703   
    >;
  719    704   
  720    705   
    fn poll(
  721    706   
        self: std::pin::Pin<&mut Self>,
  722    707   
        cx: &mut std::task::Context<'_>,
  723    708   
    ) -> std::task::Poll<Self::Output> {
  724    709   
        let this = self.project();
  725    710   
        this.inner.as_mut().poll(cx)
  726    711   
    }
  727    712   
}
  728    713   
  729    714   
impl<B>
  730         -
    ::aws_smithy_http_server::request::FromRequest<
  731         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         715  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         716  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  732    717   
        B,
  733    718   
    > for crate::input::MapWithEnumKeyOpInput
  734    719   
where
  735         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         720  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  736    721   
    B: 'static,
  737    722   
  738    723   
    B::Data: Send,
  739         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  740         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         724  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         725  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  741    726   
{
  742         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         727  +
    type Rejection =
         728  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  743    729   
    type Future = MapWithEnumKeyOpInputFuture;
  744    730   
  745    731   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  746    732   
        let fut = async move {
  747         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         733  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  748    734   
                request.headers(),
  749    735   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  750    736   
            ) {
  751         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         737  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  752    738   
            }
  753    739   
            crate::protocol_serde::shape_map_with_enum_key_op::de_map_with_enum_key_op_http_request(
  754    740   
                request,
  755    741   
            )
  756    742   
            .await
  757    743   
        };
  758    744   
        use ::futures_util::future::TryFutureExt;
  759         -
        let fut = fut.map_err(
  760         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         745  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  761    746   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  762         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  763         -
                    e,
  764         -
                )
  765         -
            },
  766         -
        );
         747  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         748  +
                    });
  767    749   
        MapWithEnumKeyOpInputFuture {
  768    750   
            inner: Box::pin(fut),
  769    751   
        }
  770    752   
    }
  771    753   
}
  772    754   
impl
  773         -
    ::aws_smithy_http_server::response::IntoResponse<
  774         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         755  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         756  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  775    757   
    > for crate::output::MapWithEnumKeyOpOutput
  776    758   
{
  777         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         759  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  778    760   
        match crate::protocol_serde::shape_map_with_enum_key_op::ser_map_with_enum_key_op_http_response(self) {
  779    761   
                        Ok(response) => response,
  780    762   
                        Err(e) => {
  781    763   
                            ::tracing::error!(error = %e, "failed to serialize response");
  782         -
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         764  +
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  783    765   
                        }
  784    766   
                    }
  785    767   
    }
  786    768   
}
  787    769   
impl
  788         -
    ::aws_smithy_http_server::response::IntoResponse<
  789         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         770  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         771  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  790    772   
    > for crate::error::MapWithEnumKeyOpError
  791    773   
{
  792         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         774  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  793    775   
        match crate::protocol_serde::shape_map_with_enum_key_op::ser_map_with_enum_key_op_http_error(
  794    776   
            &self,
  795    777   
        ) {
  796    778   
            Ok(mut response) => {
  797    779   
                response.extensions_mut().insert(
  798         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
         780  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         781  +
                        self.name(),
         782  +
                    ),
  799    783   
                );
  800    784   
                response
  801    785   
            }
  802    786   
            Err(e) => {
  803    787   
                ::tracing::error!(error = %e, "failed to serialize response");
  804         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         788  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  805    789   
            }
  806    790   
        }
  807    791   
    }
  808    792   
}
  809    793   
  810    794   
::pin_project_lite::pin_project! {
  811    795   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  812    796   
    /// [`StatusResponseInput`](crate::input::StatusResponseInput) using modelled bindings.
  813    797   
    pub struct StatusResponseInputFuture {
  814         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StatusResponseInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         798  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StatusResponseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  815    799   
    }
  816    800   
}
  817    801   
  818    802   
impl std::future::Future for StatusResponseInputFuture {
  819    803   
    type Output = Result<
  820    804   
        crate::input::StatusResponseInput,
  821         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         805  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  822    806   
    >;
  823    807   
  824    808   
    fn poll(
  825    809   
        self: std::pin::Pin<&mut Self>,
  826    810   
        cx: &mut std::task::Context<'_>,
  827    811   
    ) -> std::task::Poll<Self::Output> {
  828    812   
        let this = self.project();
  829    813   
        this.inner.as_mut().poll(cx)
  830    814   
    }
  831    815   
}
  832    816   
  833    817   
impl<B>
  834         -
    ::aws_smithy_http_server::request::FromRequest<
  835         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         818  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         819  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  836    820   
        B,
  837    821   
    > for crate::input::StatusResponseInput
  838    822   
where
  839         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         823  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  840    824   
    B: 'static,
  841    825   
  842    826   
    B::Data: Send,
  843         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  844         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         827  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         828  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  845    829   
{
  846         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         830  +
    type Rejection =
         831  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  847    832   
    type Future = StatusResponseInputFuture;
  848    833   
  849    834   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  850    835   
        let fut = async move {
  851         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         836  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  852    837   
                request.headers(),
  853    838   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  854    839   
            ) {
  855         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         840  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  856    841   
            }
  857    842   
            crate::protocol_serde::shape_status_response::de_status_response_http_request(request)
  858    843   
                .await
  859    844   
        };
  860    845   
        use ::futures_util::future::TryFutureExt;
  861         -
        let fut = fut.map_err(
  862         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         846  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  863    847   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  864         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  865         -
                    e,
  866         -
                )
  867         -
            },
  868         -
        );
         848  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         849  +
                    });
  869    850   
        StatusResponseInputFuture {
  870    851   
            inner: Box::pin(fut),
  871    852   
        }
  872    853   
    }
  873    854   
}
  874    855   
impl
  875         -
    ::aws_smithy_http_server::response::IntoResponse<
  876         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         856  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         857  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  877    858   
    > for crate::output::StatusResponseOutput
  878    859   
{
  879         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         860  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  880    861   
        match crate::protocol_serde::shape_status_response::ser_status_response_http_response(self)
  881    862   
        {
  882    863   
            Ok(response) => response,
  883    864   
            Err(e) => {
  884    865   
                ::tracing::error!(error = %e, "failed to serialize response");
  885         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         866  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  886    867   
            }
  887    868   
        }
  888    869   
    }
  889    870   
}
  890    871   
impl
  891         -
    ::aws_smithy_http_server::response::IntoResponse<
  892         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         872  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         873  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  893    874   
    > for crate::error::StatusResponseError
  894    875   
{
  895         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         876  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  896    877   
        match crate::protocol_serde::shape_status_response::ser_status_response_http_error(&self) {
  897    878   
            Ok(mut response) => {
  898    879   
                response.extensions_mut().insert(
  899         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
         880  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         881  +
                        self.name(),
         882  +
                    ),
  900    883   
                );
  901    884   
                response
  902    885   
            }
  903    886   
            Err(e) => {
  904    887   
                ::tracing::error!(error = %e, "failed to serialize response");
  905         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         888  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  906    889   
            }
  907    890   
        }
  908    891   
    }
  909    892   
}
  910    893   
  911    894   
::pin_project_lite::pin_project! {
  912    895   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
  913    896   
    /// [`EnumQueryInput`](crate::input::EnumQueryInput) using modelled bindings.
  914    897   
    pub struct EnumQueryInputFuture {
  915         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EnumQueryInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         898  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EnumQueryInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
  916    899   
    }
  917    900   
}
  918    901   
  919    902   
impl std::future::Future for EnumQueryInputFuture {
  920    903   
    type Output = Result<
  921    904   
        crate::input::EnumQueryInput,
  922         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
         905  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
  923    906   
    >;
  924    907   
  925    908   
    fn poll(
  926    909   
        self: std::pin::Pin<&mut Self>,
  927    910   
        cx: &mut std::task::Context<'_>,
  928    911   
    ) -> std::task::Poll<Self::Output> {
  929    912   
        let this = self.project();
  930    913   
        this.inner.as_mut().poll(cx)
  931    914   
    }
  932    915   
}
  933    916   
  934    917   
impl<B>
  935         -
    ::aws_smithy_http_server::request::FromRequest<
  936         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         918  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
         919  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  937    920   
        B,
  938    921   
    > for crate::input::EnumQueryInput
  939    922   
where
  940         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
         923  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
  941    924   
    B: 'static,
  942    925   
  943    926   
    B::Data: Send,
  944         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
  945         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
         927  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
         928  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
  946    929   
{
  947         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
         930  +
    type Rejection =
         931  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
  948    932   
    type Future = EnumQueryInputFuture;
  949    933   
  950    934   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
  951    935   
        let fut = async move {
  952         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
         936  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
  953    937   
                request.headers(),
  954    938   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
  955    939   
            ) {
  956         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
         940  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
  957    941   
            }
  958    942   
            crate::protocol_serde::shape_enum_query::de_enum_query_http_request(request).await
  959    943   
        };
  960    944   
        use ::futures_util::future::TryFutureExt;
  961         -
        let fut = fut.map_err(
  962         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
         945  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
  963    946   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
  964         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
  965         -
                    e,
  966         -
                )
  967         -
            },
  968         -
        );
         947  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
         948  +
                    });
  969    949   
        EnumQueryInputFuture {
  970    950   
            inner: Box::pin(fut),
  971    951   
        }
  972    952   
    }
  973    953   
}
  974    954   
impl
  975         -
    ::aws_smithy_http_server::response::IntoResponse<
  976         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         955  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         956  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  977    957   
    > for crate::output::EnumQueryOutput
  978    958   
{
  979         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         959  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  980    960   
        match crate::protocol_serde::shape_enum_query::ser_enum_query_http_response(self) {
  981    961   
            Ok(response) => response,
  982    962   
            Err(e) => {
  983    963   
                ::tracing::error!(error = %e, "failed to serialize response");
  984         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         964  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
  985    965   
            }
  986    966   
        }
  987    967   
    }
  988    968   
}
  989    969   
impl
  990         -
    ::aws_smithy_http_server::response::IntoResponse<
  991         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
         970  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
         971  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
  992    972   
    > for crate::error::EnumQueryError
  993    973   
{
  994         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
         974  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
  995    975   
        match crate::protocol_serde::shape_enum_query::ser_enum_query_http_error(&self) {
  996    976   
            Ok(mut response) => {
  997    977   
                response.extensions_mut().insert(
  998         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
         978  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
         979  +
                        self.name(),
         980  +
                    ),
  999    981   
                );
 1000    982   
                response
 1001    983   
            }
 1002    984   
            Err(e) => {
 1003    985   
                ::tracing::error!(error = %e, "failed to serialize response");
 1004         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
         986  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
 1005    987   
            }
 1006    988   
        }
 1007    989   
    }
 1008    990   
}
 1009    991   
 1010    992   
::pin_project_lite::pin_project! {
 1011    993   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
 1012    994   
    /// [`PrimitiveIntHeaderInput`](crate::input::PrimitiveIntHeaderInput) using modelled bindings.
 1013    995   
    pub struct PrimitiveIntHeaderInputFuture {
 1014         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PrimitiveIntHeaderInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
         996  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PrimitiveIntHeaderInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
 1015    997   
    }
 1016    998   
}
 1017    999   
 1018   1000   
impl std::future::Future for PrimitiveIntHeaderInputFuture {
 1019   1001   
    type Output = Result<
 1020   1002   
        crate::input::PrimitiveIntHeaderInput,
 1021         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
        1003  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
 1022   1004   
    >;
 1023   1005   
 1024   1006   
    fn poll(
 1025   1007   
        self: std::pin::Pin<&mut Self>,
 1026   1008   
        cx: &mut std::task::Context<'_>,
 1027   1009   
    ) -> std::task::Poll<Self::Output> {
 1028   1010   
        let this = self.project();
 1029   1011   
        this.inner.as_mut().poll(cx)
 1030   1012   
    }
 1031   1013   
}
 1032   1014   
 1033   1015   
impl<B>
 1034         -
    ::aws_smithy_http_server::request::FromRequest<
 1035         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
        1016  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
        1017  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 1036   1018   
        B,
 1037   1019   
    > for crate::input::PrimitiveIntHeaderInput
 1038   1020   
where
 1039         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
        1021  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
 1040   1022   
    B: 'static,
 1041   1023   
 1042   1024   
    B::Data: Send,
 1043         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
 1044         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
        1025  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
        1026  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
 1045   1027   
{
 1046         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
        1028  +
    type Rejection =
        1029  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
 1047   1030   
    type Future = PrimitiveIntHeaderInputFuture;
 1048   1031   
 1049   1032   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
 1050   1033   
        let fut = async move {
 1051         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
        1034  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
 1052   1035   
                request.headers(),
 1053   1036   
                &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
 1054   1037   
            ) {
 1055         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
        1038  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
 1056   1039   
            }
 1057   1040   
            crate::protocol_serde::shape_primitive_int_header::de_primitive_int_header_http_request(
 1058   1041   
                request,
 1059   1042   
            )
 1060   1043   
            .await
 1061   1044   
        };
 1062   1045   
        use ::futures_util::future::TryFutureExt;
 1063         -
        let fut = fut.map_err(
 1064         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
        1046  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
 1065   1047   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
 1066         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
 1067         -
                    e,
 1068         -
                )
 1069         -
            },
 1070         -
        );
        1048  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
        1049  +
                    });
 1071   1050   
        PrimitiveIntHeaderInputFuture {
 1072   1051   
            inner: Box::pin(fut),
 1073   1052   
        }
 1074   1053   
    }
 1075   1054   
}
 1076   1055   
impl
 1077         -
    ::aws_smithy_http_server::response::IntoResponse<
 1078         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
        1056  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
        1057  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 1079   1058   
    > for crate::output::PrimitiveIntHeaderOutput
 1080   1059   
{
 1081         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
        1060  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
 1082   1061   
        match crate::protocol_serde::shape_primitive_int_header::ser_primitive_int_header_http_response(self) {
 1083   1062   
                        Ok(response) => response,
 1084   1063   
                        Err(e) => {
 1085   1064   
                            ::tracing::error!(error = %e, "failed to serialize response");
 1086         -
                            ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
        1065  +
                            ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
 1087   1066   
                        }
 1088   1067   
                    }
 1089   1068   
    }
 1090   1069   
}
 1091   1070   
impl
 1092         -
    ::aws_smithy_http_server::response::IntoResponse<
 1093         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
        1071  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
        1072  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 1094   1073   
    > for crate::error::PrimitiveIntHeaderError
 1095   1074   
{
 1096         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
        1075  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
 1097   1076   
        match crate::protocol_serde::shape_primitive_int_header::ser_primitive_int_header_http_error(
 1098   1077   
            &self,
 1099   1078   
        ) {
 1100   1079   
            Ok(mut response) => {
 1101   1080   
                response.extensions_mut().insert(
 1102         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
        1081  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
        1082  +
                        self.name(),
        1083  +
                    ),
 1103   1084   
                );
 1104   1085   
                response
 1105   1086   
            }
 1106   1087   
            Err(e) => {
 1107   1088   
                ::tracing::error!(error = %e, "failed to serialize response");
 1108         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
        1089  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
 1109   1090   
            }
 1110   1091   
        }
 1111   1092   
    }
 1112   1093   
}
 1113   1094   
 1114   1095   
::pin_project_lite::pin_project! {
 1115   1096   
    /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
 1116   1097   
    /// [`StringPayloadInput`](crate::input::StringPayloadInput) using modelled bindings.
 1117   1098   
    pub struct StringPayloadInputFuture {
 1118         -
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StringPayloadInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
        1099  +
        inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StringPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
 1119   1100   
    }
 1120   1101   
}
 1121   1102   
 1122   1103   
impl std::future::Future for StringPayloadInputFuture {
 1123   1104   
    type Output = Result<
 1124   1105   
        crate::input::StringPayloadInput,
 1125         -
        ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
        1106  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
 1126   1107   
    >;
 1127   1108   
 1128   1109   
    fn poll(
 1129   1110   
        self: std::pin::Pin<&mut Self>,
 1130   1111   
        cx: &mut std::task::Context<'_>,
 1131   1112   
    ) -> std::task::Poll<Self::Output> {
 1132   1113   
        let this = self.project();
 1133   1114   
        this.inner.as_mut().poll(cx)
 1134   1115   
    }
 1135   1116   
}
 1136   1117   
 1137   1118   
impl<B>
 1138         -
    ::aws_smithy_http_server::request::FromRequest<
 1139         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
        1119  +
    ::aws_smithy_legacy_http_server::request::FromRequest<
        1120  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 1140   1121   
        B,
 1141   1122   
    > for crate::input::StringPayloadInput
 1142   1123   
where
 1143         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
        1124  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
 1144   1125   
    B: 'static,
 1145   1126   
 1146   1127   
    B::Data: Send,
 1147         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
 1148         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
        1128  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
        1129  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
 1149   1130   
{
 1150         -
    type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
        1131  +
    type Rejection =
        1132  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
 1151   1133   
    type Future = StringPayloadInputFuture;
 1152   1134   
 1153   1135   
    fn from_request(request: ::http::Request<B>) -> Self::Future {
 1154   1136   
        let fut = async move {
 1155         -
            if !::aws_smithy_http_server::protocol::accept_header_classifier(
        1137  +
            if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
 1156   1138   
                request.headers(),
 1157   1139   
                &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
 1158   1140   
            ) {
 1159         -
                return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
        1141  +
                return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
 1160   1142   
            }
 1161   1143   
            crate::protocol_serde::shape_string_payload::de_string_payload_http_request(request)
 1162   1144   
                .await
 1163   1145   
        };
 1164   1146   
        use ::futures_util::future::TryFutureExt;
 1165         -
        let fut = fut.map_err(
 1166         -
            |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
        1147  +
        let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
 1167   1148   
                        ::tracing::debug!(error = %e, "failed to deserialize request");
 1168         -
                ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
 1169         -
                    e,
 1170         -
                )
 1171         -
            },
 1172         -
        );
        1149  +
                        ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
        1150  +
                    });
 1173   1151   
        StringPayloadInputFuture {
 1174   1152   
            inner: Box::pin(fut),
 1175   1153   
        }
 1176   1154   
    }
 1177   1155   
}
 1178   1156   
impl
 1179         -
    ::aws_smithy_http_server::response::IntoResponse<
 1180         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
        1157  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
        1158  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 1181   1159   
    > for crate::output::StringPayloadOutput
 1182   1160   
{
 1183         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
        1161  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
 1184   1162   
        match crate::protocol_serde::shape_string_payload::ser_string_payload_http_response(self) {
 1185   1163   
            Ok(response) => response,
 1186   1164   
            Err(e) => {
 1187   1165   
                ::tracing::error!(error = %e, "failed to serialize response");
 1188         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
        1166  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
 1189   1167   
            }
 1190   1168   
        }
 1191   1169   
    }
 1192   1170   
}
 1193   1171   
impl
 1194         -
    ::aws_smithy_http_server::response::IntoResponse<
 1195         -
        ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
        1172  +
    ::aws_smithy_legacy_http_server::response::IntoResponse<
        1173  +
        ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
 1196   1174   
    > for crate::error::StringPayloadError
 1197   1175   
{
 1198         -
    fn into_response(self) -> ::aws_smithy_http_server::response::Response {
        1176  +
    fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
 1199   1177   
        match crate::protocol_serde::shape_string_payload::ser_string_payload_http_error(&self) {
 1200   1178   
            Ok(mut response) => {
 1201   1179   
                response.extensions_mut().insert(
 1202         -
                    ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
        1180  +
                    ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
        1181  +
                        self.name(),
        1182  +
                    ),
 1203   1183   
                );
 1204   1184   
                response
 1205   1185   
            }
 1206   1186   
            Err(e) => {
 1207   1187   
                ::tracing::error!(error = %e, "failed to serialize response");
 1208         -
                ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
        1188  +
                ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
 1209   1189   
            }
 1210   1190   
        }
 1211   1191   
    }
 1212   1192   
}

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/operation_shape.rs

@@ -1,1 +462,472 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(missing_docs)] // documentation missing in model
    3      3   
pub struct HttpQueryParamsOnlyOperation;
    4      4   
    5         -
impl ::aws_smithy_http_server::operation::OperationShape for HttpQueryParamsOnlyOperation {
    6         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
    7         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
           5  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for HttpQueryParamsOnlyOperation {
           6  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
           7  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
    8      8   
            "aws.protocoltests.restjson#HttpQueryParamsOnlyOperation",
    9      9   
            "aws.protocoltests.restjson",
   10     10   
            "HttpQueryParamsOnlyOperation",
   11     11   
        );
   12     12   
   13     13   
    type Input = crate::input::HttpQueryParamsOnlyOperationInput;
   14     14   
    type Output = crate::output::HttpQueryParamsOnlyOperationOutput;
   15     15   
    type Error = crate::error::HttpQueryParamsOnlyOperationError;
   16     16   
}
   17     17   
   18         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
          18  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
   19     19   
    for HttpQueryParamsOnlyOperation
   20     20   
{
   21         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   22         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   23         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   24         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   25         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
          21  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
          22  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          23  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
          24  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          25  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   26     26   
        >,
   27     27   
    >;
   28         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   29         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   30         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
          28  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
          29  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          30  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   31     31   
    >;
   32     32   
   33     33   
    fn request_fmt() -> Self::RequestFmt {
   34         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
          34  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
   35     35   
    }
   36     36   
   37     37   
    fn response_fmt() -> Self::ResponseFmt {
   38         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
          38  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   39     39   
    }
   40     40   
}
   41     41   
   42     42   
#[allow(missing_docs)] // documentation missing in model
   43     43   
pub struct QueryPrecedence;
   44     44   
   45         -
impl ::aws_smithy_http_server::operation::OperationShape for QueryPrecedence {
   46         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   47         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
          45  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for QueryPrecedence {
          46  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
          47  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
   48     48   
            "aws.protocoltests.restjson#QueryPrecedence",
   49     49   
            "aws.protocoltests.restjson",
   50     50   
            "QueryPrecedence",
   51     51   
        );
   52     52   
   53     53   
    type Input = crate::input::QueryPrecedenceInput;
   54     54   
    type Output = crate::output::QueryPrecedenceOutput;
   55     55   
    type Error = crate::error::QueryPrecedenceError;
   56     56   
}
   57     57   
   58         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for QueryPrecedence {
   59         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
   60         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   61         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
   62         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
   63         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
          58  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
          59  +
    for QueryPrecedence
          60  +
{
          61  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
          62  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          63  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
          64  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          65  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   64     66   
        >,
   65     67   
    >;
   66         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
   67         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
   68         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
          68  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
          69  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
          70  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
   69     71   
    >;
   70     72   
   71     73   
    fn request_fmt() -> Self::RequestFmt {
   72         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
          74  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
   73     75   
    }
   74     76   
   75     77   
    fn response_fmt() -> Self::ResponseFmt {
   76         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
          78  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
   77     79   
    }
   78     80   
}
   79     81   
   80     82   
#[allow(missing_docs)] // documentation missing in model
   81     83   
pub struct EmptyStructWithContentOnWireOp;
   82     84   
   83         -
impl ::aws_smithy_http_server::operation::OperationShape for EmptyStructWithContentOnWireOp {
   84         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
   85         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
          85  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EmptyStructWithContentOnWireOp {
          86  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
          87  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
   86     88   
            "aws.protocoltests.restjson#EmptyStructWithContentOnWireOp",
   87     89   
            "aws.protocoltests.restjson",
   88     90   
            "EmptyStructWithContentOnWireOp",
   89     91   
        );
   90     92   
   91     93   
    type Input = crate::input::EmptyStructWithContentOnWireOpInput;
   92     94   
    type Output = crate::output::EmptyStructWithContentOnWireOpOutput;
   93     95   
    type Error = crate::error::EmptyStructWithContentOnWireOpError;
   94     96   
}
   95     97   
   96         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
          98  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
   97     99   
    for EmptyStructWithContentOnWireOp
   98    100   
{
   99         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  100         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  101         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  102         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  103         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         101  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         102  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         103  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         104  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         105  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  104    106   
        >,
  105    107   
    >;
  106         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  107         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  108         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         108  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         109  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         110  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  109    111   
    >;
  110    112   
  111    113   
    fn request_fmt() -> Self::RequestFmt {
  112         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         114  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  113    115   
    }
  114    116   
  115    117   
    fn response_fmt() -> Self::ResponseFmt {
  116         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         118  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  117    119   
    }
  118    120   
}
  119    121   
  120    122   
#[allow(missing_docs)] // documentation missing in model
  121    123   
pub struct CaseInsensitiveErrorOperation;
  122    124   
  123         -
impl ::aws_smithy_http_server::operation::OperationShape for CaseInsensitiveErrorOperation {
  124         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  125         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         125  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for CaseInsensitiveErrorOperation {
         126  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         127  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  126    128   
            "aws.protocoltests.restjson#CaseInsensitiveErrorOperation",
  127    129   
            "aws.protocoltests.restjson",
  128    130   
            "CaseInsensitiveErrorOperation",
  129    131   
        );
  130    132   
  131    133   
    type Input = crate::input::CaseInsensitiveErrorOperationInput;
  132    134   
    type Output = crate::output::CaseInsensitiveErrorOperationOutput;
  133    135   
    type Error = crate::error::CaseInsensitiveErrorOperationError;
  134    136   
}
  135    137   
  136         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity
         138  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
  137    139   
    for CaseInsensitiveErrorOperation
  138    140   
{
  139         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  140         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  141         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  142         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  143         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         141  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         142  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         143  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         144  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         145  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  144    146   
        >,
  145    147   
    >;
  146         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  147         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  148         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         148  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         149  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         150  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  149    151   
    >;
  150    152   
  151    153   
    fn request_fmt() -> Self::RequestFmt {
  152         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         154  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  153    155   
    }
  154    156   
  155    157   
    fn response_fmt() -> Self::ResponseFmt {
  156         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         158  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  157    159   
    }
  158    160   
}
  159    161   
  160    162   
#[allow(missing_docs)] // documentation missing in model
  161    163   
pub struct NullInNonSparse;
  162    164   
  163         -
impl ::aws_smithy_http_server::operation::OperationShape for NullInNonSparse {
  164         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  165         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         165  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for NullInNonSparse {
         166  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         167  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  166    168   
            "aws.protocoltests.restjson#NullInNonSparse",
  167    169   
            "aws.protocoltests.restjson",
  168    170   
            "NullInNonSparse",
  169    171   
        );
  170    172   
  171    173   
    type Input = crate::input::NullInNonSparseInput;
  172    174   
    type Output = crate::output::NullInNonSparseOutput;
  173    175   
    type Error = crate::error::NullInNonSparseError;
  174    176   
}
  175    177   
  176         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for NullInNonSparse {
  177         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  178         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  179         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  180         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  181         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         178  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         179  +
    for NullInNonSparse
         180  +
{
         181  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         182  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         183  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         184  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         185  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  182    186   
        >,
  183    187   
    >;
  184         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  185         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  186         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         188  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         189  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         190  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  187    191   
    >;
  188    192   
  189    193   
    fn request_fmt() -> Self::RequestFmt {
  190         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         194  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  191    195   
    }
  192    196   
  193    197   
    fn response_fmt() -> Self::ResponseFmt {
  194         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         198  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  195    199   
    }
  196    200   
}
  197    201   
  198    202   
#[allow(missing_docs)] // documentation missing in model
  199    203   
pub struct EscapedStringValues;
  200    204   
  201         -
impl ::aws_smithy_http_server::operation::OperationShape for EscapedStringValues {
  202         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  203         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         205  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EscapedStringValues {
         206  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         207  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  204    208   
            "aws.protocoltests.restjson#EscapedStringValues",
  205    209   
            "aws.protocoltests.restjson",
  206    210   
            "EscapedStringValues",
  207    211   
        );
  208    212   
  209    213   
    type Input = crate::input::EscapedStringValuesInput;
  210    214   
    type Output = crate::output::EscapedStringValuesOutput;
  211    215   
    type Error = crate::error::EscapedStringValuesError;
  212    216   
}
  213    217   
  214         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EscapedStringValues {
  215         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  216         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  217         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  218         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  219         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         218  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         219  +
    for EscapedStringValues
         220  +
{
         221  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         222  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         223  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         224  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         225  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  220    226   
        >,
  221    227   
    >;
  222         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  223         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  224         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         228  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         229  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         230  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  225    231   
    >;
  226    232   
  227    233   
    fn request_fmt() -> Self::RequestFmt {
  228         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         234  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  229    235   
    }
  230    236   
  231    237   
    fn response_fmt() -> Self::ResponseFmt {
  232         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         238  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  233    239   
    }
  234    240   
}
  235    241   
  236    242   
#[allow(missing_docs)] // documentation missing in model
  237    243   
pub struct PrimitiveIntOp;
  238    244   
  239         -
impl ::aws_smithy_http_server::operation::OperationShape for PrimitiveIntOp {
  240         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  241         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         245  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for PrimitiveIntOp {
         246  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         247  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  242    248   
            "aws.protocoltests.restjson#PrimitiveIntOp",
  243    249   
            "aws.protocoltests.restjson",
  244    250   
            "PrimitiveIntOp",
  245    251   
        );
  246    252   
  247    253   
    type Input = crate::input::PrimitiveIntOpInput;
  248    254   
    type Output = crate::output::PrimitiveIntOpOutput;
  249    255   
    type Error = crate::error::PrimitiveIntOpError;
  250    256   
}
  251    257   
  252         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for PrimitiveIntOp {
  253         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  254         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  255         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  256         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  257         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         258  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for PrimitiveIntOp {
         259  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         260  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         261  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         262  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         263  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  258    264   
        >,
  259    265   
    >;
  260         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  261         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  262         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         266  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         267  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         268  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  263    269   
    >;
  264    270   
  265    271   
    fn request_fmt() -> Self::RequestFmt {
  266         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         272  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  267    273   
    }
  268    274   
  269    275   
    fn response_fmt() -> Self::ResponseFmt {
  270         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         276  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  271    277   
    }
  272    278   
}
  273    279   
  274    280   
#[allow(missing_docs)] // documentation missing in model
  275    281   
pub struct MapWithEnumKeyOp;
  276    282   
  277         -
impl ::aws_smithy_http_server::operation::OperationShape for MapWithEnumKeyOp {
  278         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  279         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         283  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for MapWithEnumKeyOp {
         284  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         285  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  280    286   
            "aws.protocoltests.restjson#MapWithEnumKeyOp",
  281    287   
            "aws.protocoltests.restjson",
  282    288   
            "MapWithEnumKeyOp",
  283    289   
        );
  284    290   
  285    291   
    type Input = crate::input::MapWithEnumKeyOpInput;
  286    292   
    type Output = crate::output::MapWithEnumKeyOpOutput;
  287    293   
    type Error = crate::error::MapWithEnumKeyOpError;
  288    294   
}
  289    295   
  290         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for MapWithEnumKeyOp {
  291         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  292         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  293         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  294         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  295         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         296  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         297  +
    for MapWithEnumKeyOp
         298  +
{
         299  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         300  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         301  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         302  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         303  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  296    304   
        >,
  297    305   
    >;
  298         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  299         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  300         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         306  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         307  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         308  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  301    309   
    >;
  302    310   
  303    311   
    fn request_fmt() -> Self::RequestFmt {
  304         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         312  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  305    313   
    }
  306    314   
  307    315   
    fn response_fmt() -> Self::ResponseFmt {
  308         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         316  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  309    317   
    }
  310    318   
}
  311    319   
  312    320   
#[allow(missing_docs)] // documentation missing in model
  313    321   
pub struct StatusResponse;
  314    322   
  315         -
impl ::aws_smithy_http_server::operation::OperationShape for StatusResponse {
  316         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  317         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         323  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for StatusResponse {
         324  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         325  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  318    326   
            "aws.protocoltests.restjson#StatusResponse",
  319    327   
            "aws.protocoltests.restjson",
  320    328   
            "StatusResponse",
  321    329   
        );
  322    330   
  323    331   
    type Input = crate::input::StatusResponseInput;
  324    332   
    type Output = crate::output::StatusResponseOutput;
  325    333   
    type Error = crate::error::StatusResponseError;
  326    334   
}
  327    335   
  328         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for StatusResponse {
  329         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  330         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  331         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  332         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  333         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         336  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for StatusResponse {
         337  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         338  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         339  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         340  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         341  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  334    342   
        >,
  335    343   
    >;
  336         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  337         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  338         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         344  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         345  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         346  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  339    347   
    >;
  340    348   
  341    349   
    fn request_fmt() -> Self::RequestFmt {
  342         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         350  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  343    351   
    }
  344    352   
  345    353   
    fn response_fmt() -> Self::ResponseFmt {
  346         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         354  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  347    355   
    }
  348    356   
}
  349    357   
  350    358   
#[allow(missing_docs)] // documentation missing in model
  351    359   
pub struct EnumQuery;
  352    360   
  353         -
impl ::aws_smithy_http_server::operation::OperationShape for EnumQuery {
  354         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  355         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         361  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for EnumQuery {
         362  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         363  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  356    364   
            "aws.protocoltests.restjson#EnumQuery",
  357    365   
            "aws.protocoltests.restjson",
  358    366   
            "EnumQuery",
  359    367   
        );
  360    368   
  361    369   
    type Input = crate::input::EnumQueryInput;
  362    370   
    type Output = crate::output::EnumQueryOutput;
  363    371   
    type Error = crate::error::EnumQueryError;
  364    372   
}
  365    373   
  366         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for EnumQuery {
  367         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  368         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  369         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  370         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  371         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         374  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for EnumQuery {
         375  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         376  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         377  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         378  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         379  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  372    380   
        >,
  373    381   
    >;
  374         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  375         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  376         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         382  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         383  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         384  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  377    385   
    >;
  378    386   
  379    387   
    fn request_fmt() -> Self::RequestFmt {
  380         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         388  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  381    389   
    }
  382    390   
  383    391   
    fn response_fmt() -> Self::ResponseFmt {
  384         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         392  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  385    393   
    }
  386    394   
}
  387    395   
  388    396   
#[allow(missing_docs)] // documentation missing in model
  389    397   
pub struct PrimitiveIntHeader;
  390    398   
  391         -
impl ::aws_smithy_http_server::operation::OperationShape for PrimitiveIntHeader {
  392         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  393         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         399  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for PrimitiveIntHeader {
         400  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         401  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  394    402   
            "aws.protocoltests.restjson#PrimitiveIntHeader",
  395    403   
            "aws.protocoltests.restjson",
  396    404   
            "PrimitiveIntHeader",
  397    405   
        );
  398    406   
  399    407   
    type Input = crate::input::PrimitiveIntHeaderInput;
  400    408   
    type Output = crate::output::PrimitiveIntHeaderOutput;
  401    409   
    type Error = crate::error::PrimitiveIntHeaderError;
  402    410   
}
  403    411   
  404         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for PrimitiveIntHeader {
  405         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  406         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  407         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  408         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  409         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         412  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity
         413  +
    for PrimitiveIntHeader
         414  +
{
         415  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         416  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         417  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         418  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         419  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  410    420   
        >,
  411    421   
    >;
  412         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  413         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  414         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         422  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         423  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         424  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  415    425   
    >;
  416    426   
  417    427   
    fn request_fmt() -> Self::RequestFmt {
  418         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         428  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  419    429   
    }
  420    430   
  421    431   
    fn response_fmt() -> Self::ResponseFmt {
  422         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         432  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  423    433   
    }
  424    434   
}
  425    435   
  426    436   
#[allow(missing_docs)] // documentation missing in model
  427    437   
pub struct StringPayload;
  428    438   
  429         -
impl ::aws_smithy_http_server::operation::OperationShape for StringPayload {
  430         -
    const ID: ::aws_smithy_http_server::shape_id::ShapeId =
  431         -
        ::aws_smithy_http_server::shape_id::ShapeId::new(
         439  +
impl ::aws_smithy_legacy_http_server::operation::OperationShape for StringPayload {
         440  +
    const ID: ::aws_smithy_legacy_http_server::shape_id::ShapeId =
         441  +
        ::aws_smithy_legacy_http_server::shape_id::ShapeId::new(
  432    442   
            "aws.protocoltests.restjson#StringPayload",
  433    443   
            "aws.protocoltests.restjson",
  434    444   
            "StringPayload",
  435    445   
        );
  436    446   
  437    447   
    type Input = crate::input::StringPayloadInput;
  438    448   
    type Output = crate::output::StringPayloadOutput;
  439    449   
    type Error = crate::error::StringPayloadError;
  440    450   
}
  441    451   
  442         -
impl ::aws_smithy_http_server::instrumentation::sensitivity::Sensitivity for StringPayload {
  443         -
    type RequestFmt = ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt<
  444         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  445         -
        ::aws_smithy_http_server::instrumentation::sensitivity::uri::MakeUri<
  446         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
  447         -
            ::aws_smithy_http_server::instrumentation::MakeIdentity,
         452  +
impl ::aws_smithy_legacy_http_server::instrumentation::sensitivity::Sensitivity for StringPayload {
         453  +
    type RequestFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt<
         454  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         455  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::uri::MakeUri<
         456  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         457  +
            ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  448    458   
        >,
  449    459   
    >;
  450         -
    type ResponseFmt = ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt<
  451         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
  452         -
        ::aws_smithy_http_server::instrumentation::MakeIdentity,
         460  +
    type ResponseFmt = ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt<
         461  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
         462  +
        ::aws_smithy_legacy_http_server::instrumentation::MakeIdentity,
  453    463   
    >;
  454    464   
  455    465   
    fn request_fmt() -> Self::RequestFmt {
  456         -
        ::aws_smithy_http_server::instrumentation::sensitivity::RequestFmt::new()
         466  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::RequestFmt::new()
  457    467   
    }
  458    468   
  459    469   
    fn response_fmt() -> Self::ResponseFmt {
  460         -
        ::aws_smithy_http_server::instrumentation::sensitivity::ResponseFmt::new()
         470  +
        ::aws_smithy_legacy_http_server::instrumentation::sensitivity::ResponseFmt::new()
  461    471   
    }
  462    472   
}

tmp-codegen-diff/codegen-server-test-python/rest_json_extras/rust-server-codegen-python/src/protocol_serde/shape_case_insensitive_error_operation.rs

@@ -1,1 +141,143 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3      3   
pub async fn de_case_insensitive_error_operation_http_request<B>(
    4      4   
    #[allow(unused_variables)] request: ::http::Request<B>,
    5      5   
) -> std::result::Result<
    6      6   
    crate::input::CaseInsensitiveErrorOperationInput,
    7         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection,
           7  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection,
    8      8   
>
    9      9   
where
   10         -
    B: ::aws_smithy_http_server::body::HttpBody + Send,
          10  +
    B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
   11     11   
    B::Data: Send,
   12         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
   13         -
        From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
          12  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
          13  +
        From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
   14     14   
{
   15     15   
    Ok({
   16     16   
        #[allow(unused_mut)]
   17     17   
        let mut input =
   18     18   
            crate::input::case_insensitive_error_operation_input_internal::Builder::default();
   19     19   
        #[allow(unused_variables)]
   20     20   
        let ::aws_smithy_runtime_api::http::RequestParts {
   21     21   
            uri, headers, body, ..
   22     22   
        } = ::aws_smithy_runtime_api::http::Request::try_from(request)?.into_parts();
   23         -
        ::aws_smithy_http_server::protocol::content_type_header_classifier_smithy(&headers, None)?;
          23  +
        ::aws_smithy_legacy_http_server::protocol::content_type_header_classifier_smithy(
          24  +
            &headers, None,
          25  +
        )?;
   24     26   
        input.build()
   25     27   
    })
   26     28   
}
   27     29   
   28     30   
#[allow(clippy::unnecessary_wraps)]
   29     31   
pub fn ser_case_insensitive_error_operation_http_response(
   30     32   
    #[allow(unused_variables)] output: crate::output::CaseInsensitiveErrorOperationOutput,
   31     33   
) -> std::result::Result<
   32         -
    ::aws_smithy_http_server::response::Response,
   33         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          34  +
    ::aws_smithy_legacy_http_server::response::Response,
          35  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   34     36   
> {
   35     37   
    Ok({
   36     38   
        #[allow(unused_mut)]
   37     39   
        let mut builder = ::http::Response::builder();
   38         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          40  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   39     41   
            builder,
   40     42   
            ::http::header::CONTENT_TYPE,
   41     43   
            "application/json",
   42     44   
        );
   43     45   
        let http_status: u16 = 200;
   44     46   
        builder = builder.status(http_status);
   45     47   
        let payload = "";
   46     48   
        let content_length = payload.len();
   47         -
        builder = ::aws_smithy_http::header::set_response_header_if_absent(
          49  +
        builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   48     50   
            builder,
   49     51   
            ::http::header::CONTENT_LENGTH,
   50     52   
            content_length,
   51     53   
        );
   52         -
        let body = ::aws_smithy_http_server::body::to_boxed(payload);
          54  +
        let body = ::aws_smithy_legacy_http_server::body::to_boxed(payload);
   53     55   
        builder.body(body)?
   54     56   
    })
   55     57   
}
   56     58   
   57     59   
#[allow(clippy::unnecessary_wraps)]
   58     60   
pub fn ser_case_insensitive_error_operation_http_error(
   59     61   
    error: &crate::error::CaseInsensitiveErrorOperationError,
   60     62   
) -> std::result::Result<
   61         -
    ::aws_smithy_http_server::response::Response,
   62         -
    ::aws_smithy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
          63  +
    ::aws_smithy_legacy_http_server::response::Response,
          64  +
    ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::ResponseRejection,
   63     65   
> {
   64     66   
    Ok({
   65     67   
        match error {
   66     68   
            crate::error::CaseInsensitiveErrorOperationError::CaseInsensitiveError(output) => {
   67     69   
                let payload = crate::protocol_serde::shape_case_insensitive_error::ser_case_insensitive_error_error(output)?;
   68     70   
                #[allow(unused_mut)]
   69     71   
                let mut builder = ::http::Response::builder();
   70         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          72  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   71     73   
                    builder,
   72     74   
                    ::http::header::CONTENT_TYPE,
   73     75   
                    "application/json",
   74     76   
                );
   75         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          77  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   76     78   
                    builder,
   77     79   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
   78     80   
                    "CaseInsensitiveError",
   79     81   
                );
   80     82   
                let content_length = payload.len();
   81         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          83  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   82     84   
                    builder,
   83     85   
                    ::http::header::CONTENT_LENGTH,
   84     86   
                    content_length,
   85     87   
                );
   86     88   
                builder
   87     89   
                    .status(500)
   88         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
          90  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
   89     91   
            }
   90     92   
            crate::error::CaseInsensitiveErrorOperationError::ExtraError(output) => {
   91     93   
                let payload =
   92     94   
                    crate::protocol_serde::shape_extra_error::ser_extra_error_error(output)?;
   93     95   
                #[allow(unused_mut)]
   94     96   
                let mut builder = ::http::Response::builder();
   95         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
          97  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
   96     98   
                    builder,
   97     99   
                    ::http::header::CONTENT_TYPE,
   98    100   
                    "application/json",
   99    101   
                );
  100         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         102  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  101    103   
                    builder,
  102    104   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  103    105   
                    "ExtraError",
  104    106   
                );
  105    107   
                let content_length = payload.len();
  106         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         108  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  107    109   
                    builder,
  108    110   
                    ::http::header::CONTENT_LENGTH,
  109    111   
                    content_length,
  110    112   
                );
  111    113   
                builder
  112    114   
                    .status(500)
  113         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         115  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  114    116   
            }
  115    117   
            crate::error::CaseInsensitiveErrorOperationError::InternalServerError(output) => {
  116    118   
                let payload = crate::protocol_serde::shape_internal_server_error::ser_internal_server_error_error(output)?;
  117    119   
                #[allow(unused_mut)]
  118    120   
                let mut builder = ::http::Response::builder();
  119         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         121  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  120    122   
                    builder,
  121    123   
                    ::http::header::CONTENT_TYPE,
  122    124   
                    "application/json",
  123    125   
                );
  124         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         126  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  125    127   
                    builder,
  126    128   
                    ::http::header::HeaderName::from_static("x-amzn-errortype"),
  127    129   
                    "InternalServerError",
  128    130   
                );
  129    131   
                let content_length = payload.len();
  130         -
                builder = ::aws_smithy_http::header::set_response_header_if_absent(
         132  +
                builder = ::aws_smithy_legacy_http::header::set_response_header_if_absent(
  131    133   
                    builder,
  132    134   
                    ::http::header::CONTENT_LENGTH,
  133    135   
                    content_length,
  134    136   
                );
  135    137   
                builder
  136    138   
                    .status(500)
  137         -
                    .body(::aws_smithy_http_server::body::to_boxed(payload))?
         139  +
                    .body(::aws_smithy_legacy_http_server::body::to_boxed(payload))?
  138    140   
            }
  139    141   
        }
  140    142   
    })
  141    143   
}