rev. fd67870c8763076fc6895510f5e759abfe0cb35c
@@ -22,22 +82,81 @@
22 22 | this.inner.as_mut().poll(cx)
|
23 23 | }
|
24 24 | }
|
25 25 |
|
26 26 | impl<B>
|
27 27 | ::aws_smithy_http_server::request::FromRequest<
|
28 28 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29 29 | B,
|
30 30 | > for crate::input::OperationWithNestedStructureInput
|
31 31 | where
|
32 32 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33 33 | B: 'static,
|
34 34 |
|
35 35 | B::Data: Send,
|
36 36 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37 37 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38 38 | {
|
39 39 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
40 40 | type Future = OperationWithNestedStructureInputFuture;
|
41 41 |
|
42 42 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
43 43 | let fut = async move {
|
44 44 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45 45 | request.headers(),
|
46 46 | &CONTENT_TYPE_OPERATIONWITHNESTEDSTRUCTURE,
|
47 47 | ) {
|
48 48 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
49 49 | }
|
50 50 | crate::protocol_serde::shape_operation_with_nested_structure::de_operation_with_nested_structure_http_request(request)
|
51 51 | .await
|
52 - | .map_err(Into::into)
|
53 52 | };
|
54 53 | use ::futures_util::future::TryFutureExt;
|
55 54 | let fut = fut.map_err(
|
56 55 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
57 56 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
58 57 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
59 58 | e,
|
60 59 | )
|
61 60 | },
|
62 61 | );
|
63 62 | OperationWithNestedStructureInputFuture {
|
64 63 | inner: Box::pin(fut),
|
65 64 | }
|
66 65 | }
|
67 66 | }
|
68 67 | impl
|
69 68 | ::aws_smithy_http_server::response::IntoResponse<
|
70 69 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
71 70 | > for crate::output::OperationWithNestedStructureOutput
|
72 71 | {
|
73 72 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
74 73 | match crate::protocol_serde::shape_operation_with_nested_structure::ser_operation_with_nested_structure_http_response(self) {
|
75 74 | Ok(response) => response,
|
76 75 | Err(e) => {
|
77 76 | ::tracing::error!(error = %e, "failed to serialize response");
|
78 77 | ::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))
|
79 78 | }
|
80 79 | }
|
81 80 | }
|
82 81 | }
|
@@ -336,335 +396,394 @@
336 335 | this.inner.as_mut().poll(cx)
|
337 336 | }
|
338 337 | }
|
339 338 |
|
340 339 | impl<B>
|
341 340 | ::aws_smithy_http_server::request::FromRequest<
|
342 341 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
343 342 | B,
|
344 343 | > for crate::input::OperationWithDefaultsInput
|
345 344 | where
|
346 345 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
347 346 | B: 'static,
|
348 347 |
|
349 348 | B::Data: Send,
|
350 349 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
351 350 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
352 351 | {
|
353 352 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
354 353 | type Future = OperationWithDefaultsInputFuture;
|
355 354 |
|
356 355 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
357 356 | let fut = async move {
|
358 357 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
359 358 | request.headers(),
|
360 359 | &CONTENT_TYPE_OPERATIONWITHDEFAULTS,
|
361 360 | ) {
|
362 361 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
363 362 | }
|
364 363 | crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_request(request)
|
365 364 | .await
|
366 - | .map_err(Into::into)
|
367 365 | };
|
368 366 | use ::futures_util::future::TryFutureExt;
|
369 367 | let fut = fut.map_err(
|
370 368 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
371 369 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
372 370 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
373 371 | e,
|
374 372 | )
|
375 373 | },
|
376 374 | );
|
377 375 | OperationWithDefaultsInputFuture {
|
378 376 | inner: Box::pin(fut),
|
379 377 | }
|
380 378 | }
|
381 379 | }
|
382 380 | impl
|
383 381 | ::aws_smithy_http_server::response::IntoResponse<
|
384 382 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
385 383 | > for crate::output::OperationWithDefaultsOutput
|
386 384 | {
|
387 385 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
388 386 | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_response(self) {
|
389 387 | Ok(response) => response,
|
390 388 | Err(e) => {
|
391 389 | ::tracing::error!(error = %e, "failed to serialize response");
|
392 390 | ::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))
|
393 391 | }
|
394 392 | }
|
395 393 | }
|
396 394 | }
|
@@ -723,721 +783,780 @@
723 721 | this.inner.as_mut().poll(cx)
|
724 722 | }
|
725 723 | }
|
726 724 |
|
727 725 | impl<B>
|
728 726 | ::aws_smithy_http_server::request::FromRequest<
|
729 727 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
730 728 | B,
|
731 729 | > for crate::input::ContentTypeParametersInput
|
732 730 | where
|
733 731 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
734 732 | B: 'static,
|
735 733 |
|
736 734 | B::Data: Send,
|
737 735 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
738 736 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
739 737 | {
|
740 738 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
741 739 | type Future = ContentTypeParametersInputFuture;
|
742 740 |
|
743 741 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
744 742 | let fut = async move {
|
745 743 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
746 744 | request.headers(),
|
747 745 | &CONTENT_TYPE_CONTENTTYPEPARAMETERS,
|
748 746 | ) {
|
749 747 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
750 748 | }
|
751 749 | crate::protocol_serde::shape_content_type_parameters::de_content_type_parameters_http_request(request)
|
752 750 | .await
|
753 - | .map_err(Into::into)
|
754 751 | };
|
755 752 | use ::futures_util::future::TryFutureExt;
|
756 753 | let fut = fut.map_err(
|
757 754 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
758 755 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
759 756 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
760 757 | e,
|
761 758 | )
|
762 759 | },
|
763 760 | );
|
764 761 | ContentTypeParametersInputFuture {
|
765 762 | inner: Box::pin(fut),
|
766 763 | }
|
767 764 | }
|
768 765 | }
|
769 766 | impl
|
770 767 | ::aws_smithy_http_server::response::IntoResponse<
|
771 768 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
772 769 | > for crate::output::ContentTypeParametersOutput
|
773 770 | {
|
774 771 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
775 772 | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_response(self) {
|
776 773 | Ok(response) => response,
|
777 774 | Err(e) => {
|
778 775 | ::tracing::error!(error = %e, "failed to serialize response");
|
779 776 | ::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))
|
780 777 | }
|
781 778 | }
|
782 779 | }
|
783 780 | }
|
@@ -856,853 +916,912 @@
856 853 | this.inner.as_mut().poll(cx)
|
857 854 | }
|
858 855 | }
|
859 856 |
|
860 857 | impl<B>
|
861 858 | ::aws_smithy_http_server::request::FromRequest<
|
862 859 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
863 860 | B,
|
864 861 | > for crate::input::PutWithContentEncodingInput
|
865 862 | where
|
866 863 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
867 864 | B: 'static,
|
868 865 |
|
869 866 | B::Data: Send,
|
870 867 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
871 868 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
872 869 | {
|
873 870 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
874 871 | type Future = PutWithContentEncodingInputFuture;
|
875 872 |
|
876 873 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
877 874 | let fut = async move {
|
878 875 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
879 876 | request.headers(),
|
880 877 | &CONTENT_TYPE_PUTWITHCONTENTENCODING,
|
881 878 | ) {
|
882 879 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
883 880 | }
|
884 881 | crate::protocol_serde::shape_put_with_content_encoding::de_put_with_content_encoding_http_request(request)
|
885 882 | .await
|
886 - | .map_err(Into::into)
|
887 883 | };
|
888 884 | use ::futures_util::future::TryFutureExt;
|
889 885 | let fut = fut.map_err(
|
890 886 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
891 887 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
892 888 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
893 889 | e,
|
894 890 | )
|
895 891 | },
|
896 892 | );
|
897 893 | PutWithContentEncodingInputFuture {
|
898 894 | inner: Box::pin(fut),
|
899 895 | }
|
900 896 | }
|
901 897 | }
|
902 898 | impl
|
903 899 | ::aws_smithy_http_server::response::IntoResponse<
|
904 900 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
905 901 | > for crate::output::PutWithContentEncodingOutput
|
906 902 | {
|
907 903 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
908 904 | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_response(self) {
|
909 905 | Ok(response) => response,
|
910 906 | Err(e) => {
|
911 907 | ::tracing::error!(error = %e, "failed to serialize response");
|
912 908 | ::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))
|
913 909 | }
|
914 910 | }
|
915 911 | }
|
916 912 | }
|
@@ -940,936 +1000,995 @@
940 936 | }
|
941 937 |
|
942 938 | impl<B>
|
943 939 | ::aws_smithy_http_server::request::FromRequest<
|
944 940 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
945 941 | B,
|
946 942 | > for crate::input::FractionalSecondsInput
|
947 943 | where
|
948 944 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
949 945 | B: 'static,
|
950 946 |
|
951 947 | B::Data: Send,
|
952 948 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
953 949 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
954 950 | {
|
955 951 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
956 952 | type Future = FractionalSecondsInputFuture;
|
957 953 |
|
958 954 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
959 955 | let fut = async move {
|
960 956 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
961 957 | request.headers(),
|
962 958 | &CONTENT_TYPE_FRACTIONALSECONDS,
|
963 959 | ) {
|
964 960 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
965 961 | }
|
966 962 | crate::protocol_serde::shape_fractional_seconds::de_fractional_seconds_http_request(
|
967 963 | request,
|
968 964 | )
|
969 965 | .await
|
970 - | .map_err(Into::into)
|
971 966 | };
|
972 967 | use ::futures_util::future::TryFutureExt;
|
973 968 | let fut = fut.map_err(
|
974 969 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
975 970 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
976 971 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
977 972 | e,
|
978 973 | )
|
979 974 | },
|
980 975 | );
|
981 976 | FractionalSecondsInputFuture {
|
982 977 | inner: Box::pin(fut),
|
983 978 | }
|
984 979 | }
|
985 980 | }
|
986 981 | impl
|
987 982 | ::aws_smithy_http_server::response::IntoResponse<
|
988 983 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
989 984 | > for crate::output::FractionalSecondsOutput
|
990 985 | {
|
991 986 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
992 987 | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_response(
|
993 988 | self,
|
994 989 | ) {
|
995 990 | Ok(response) => response,
|
996 991 | Err(e) => {
|
997 992 | ::tracing::error!(error = %e, "failed to serialize response");
|
998 993 | ::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))
|
999 994 | }
|
1000 995 | }
|
@@ -1024,1019 +1084,1078 @@
1024 1019 | this.inner.as_mut().poll(cx)
|
1025 1020 | }
|
1026 1021 | }
|
1027 1022 |
|
1028 1023 | impl<B>
|
1029 1024 | ::aws_smithy_http_server::request::FromRequest<
|
1030 1025 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1031 1026 | B,
|
1032 1027 | > for crate::input::DatetimeOffsetsInput
|
1033 1028 | where
|
1034 1029 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1035 1030 | B: 'static,
|
1036 1031 |
|
1037 1032 | B::Data: Send,
|
1038 1033 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1039 1034 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1040 1035 | {
|
1041 1036 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1042 1037 | type Future = DatetimeOffsetsInputFuture;
|
1043 1038 |
|
1044 1039 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1045 1040 | let fut = async move {
|
1046 1041 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1047 1042 | request.headers(),
|
1048 1043 | &CONTENT_TYPE_DATETIMEOFFSETS,
|
1049 1044 | ) {
|
1050 1045 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1051 1046 | }
|
1052 1047 | crate::protocol_serde::shape_datetime_offsets::de_datetime_offsets_http_request(request)
|
1053 1048 | .await
|
1054 - | .map_err(Into::into)
|
1055 1049 | };
|
1056 1050 | use ::futures_util::future::TryFutureExt;
|
1057 1051 | let fut = fut.map_err(
|
1058 1052 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1059 1053 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1060 1054 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1061 1055 | e,
|
1062 1056 | )
|
1063 1057 | },
|
1064 1058 | );
|
1065 1059 | DatetimeOffsetsInputFuture {
|
1066 1060 | inner: Box::pin(fut),
|
1067 1061 | }
|
1068 1062 | }
|
1069 1063 | }
|
1070 1064 | impl
|
1071 1065 | ::aws_smithy_http_server::response::IntoResponse<
|
1072 1066 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1073 1067 | > for crate::output::DatetimeOffsetsOutput
|
1074 1068 | {
|
1075 1069 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1076 1070 | match crate::protocol_serde::shape_datetime_offsets::ser_datetime_offsets_http_response(
|
1077 1071 | self,
|
1078 1072 | ) {
|
1079 1073 | Ok(response) => response,
|
1080 1074 | Err(e) => {
|
1081 1075 | ::tracing::error!(error = %e, "failed to serialize response");
|
1082 1076 | ::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))
|
1083 1077 | }
|
1084 1078 | }
|
@@ -1108,1102 +1168,1161 @@
1108 1102 | this.inner.as_mut().poll(cx)
|
1109 1103 | }
|
1110 1104 | }
|
1111 1105 |
|
1112 1106 | impl<B>
|
1113 1107 | ::aws_smithy_http_server::request::FromRequest<
|
1114 1108 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1115 1109 | B,
|
1116 1110 | > for crate::input::TestPostNoInputNoPayloadInput
|
1117 1111 | where
|
1118 1112 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1119 1113 | B: 'static,
|
1120 1114 |
|
1121 1115 | B::Data: Send,
|
1122 1116 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1123 1117 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1124 1118 | {
|
1125 1119 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1126 1120 | type Future = TestPostNoInputNoPayloadInputFuture;
|
1127 1121 |
|
1128 1122 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1129 1123 | let fut = async move {
|
1130 1124 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1131 1125 | request.headers(),
|
1132 1126 | &CONTENT_TYPE_TESTPOSTNOINPUTNOPAYLOAD,
|
1133 1127 | ) {
|
1134 1128 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1135 1129 | }
|
1136 1130 | crate::protocol_serde::shape_test_post_no_input_no_payload::de_test_post_no_input_no_payload_http_request(request)
|
1137 1131 | .await
|
1138 - | .map_err(Into::into)
|
1139 1132 | };
|
1140 1133 | use ::futures_util::future::TryFutureExt;
|
1141 1134 | let fut = fut.map_err(
|
1142 1135 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1143 1136 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1144 1137 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1145 1138 | e,
|
1146 1139 | )
|
1147 1140 | },
|
1148 1141 | );
|
1149 1142 | TestPostNoInputNoPayloadInputFuture {
|
1150 1143 | inner: Box::pin(fut),
|
1151 1144 | }
|
1152 1145 | }
|
1153 1146 | }
|
1154 1147 | impl
|
1155 1148 | ::aws_smithy_http_server::response::IntoResponse<
|
1156 1149 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1157 1150 | > for crate::output::TestPostNoInputNoPayloadOutput
|
1158 1151 | {
|
1159 1152 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1160 1153 | match crate::protocol_serde::shape_test_post_no_input_no_payload::ser_test_post_no_input_no_payload_http_response(self) {
|
1161 1154 | Ok(response) => response,
|
1162 1155 | Err(e) => {
|
1163 1156 | ::tracing::error!(error = %e, "failed to serialize response");
|
1164 1157 | ::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))
|
1165 1158 | }
|
1166 1159 | }
|
1167 1160 | }
|
1168 1161 | }
|
@@ -1242,1235 +1302,1294 @@
1242 1235 | this.inner.as_mut().poll(cx)
|
1243 1236 | }
|
1244 1237 | }
|
1245 1238 |
|
1246 1239 | impl<B>
|
1247 1240 | ::aws_smithy_http_server::request::FromRequest<
|
1248 1241 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1249 1242 | B,
|
1250 1243 | > for crate::input::TestGetNoInputNoPayloadInput
|
1251 1244 | where
|
1252 1245 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1253 1246 | B: 'static,
|
1254 1247 |
|
1255 1248 | B::Data: Send,
|
1256 1249 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1257 1250 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1258 1251 | {
|
1259 1252 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1260 1253 | type Future = TestGetNoInputNoPayloadInputFuture;
|
1261 1254 |
|
1262 1255 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1263 1256 | let fut = async move {
|
1264 1257 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1265 1258 | request.headers(),
|
1266 1259 | &CONTENT_TYPE_TESTGETNOINPUTNOPAYLOAD,
|
1267 1260 | ) {
|
1268 1261 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1269 1262 | }
|
1270 1263 | crate::protocol_serde::shape_test_get_no_input_no_payload::de_test_get_no_input_no_payload_http_request(request)
|
1271 1264 | .await
|
1272 - | .map_err(Into::into)
|
1273 1265 | };
|
1274 1266 | use ::futures_util::future::TryFutureExt;
|
1275 1267 | let fut = fut.map_err(
|
1276 1268 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1277 1269 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1278 1270 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1279 1271 | e,
|
1280 1272 | )
|
1281 1273 | },
|
1282 1274 | );
|
1283 1275 | TestGetNoInputNoPayloadInputFuture {
|
1284 1276 | inner: Box::pin(fut),
|
1285 1277 | }
|
1286 1278 | }
|
1287 1279 | }
|
1288 1280 | impl
|
1289 1281 | ::aws_smithy_http_server::response::IntoResponse<
|
1290 1282 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1291 1283 | > for crate::output::TestGetNoInputNoPayloadOutput
|
1292 1284 | {
|
1293 1285 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1294 1286 | match crate::protocol_serde::shape_test_get_no_input_no_payload::ser_test_get_no_input_no_payload_http_response(self) {
|
1295 1287 | Ok(response) => response,
|
1296 1288 | Err(e) => {
|
1297 1289 | ::tracing::error!(error = %e, "failed to serialize response");
|
1298 1290 | ::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))
|
1299 1291 | }
|
1300 1292 | }
|
1301 1293 | }
|
1302 1294 | }
|
@@ -1378,1370 +1438,1429 @@
1378 1370 | }
|
1379 1371 |
|
1380 1372 | impl<B>
|
1381 1373 | ::aws_smithy_http_server::request::FromRequest<
|
1382 1374 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1383 1375 | B,
|
1384 1376 | > for crate::input::TestPostNoPayloadInput
|
1385 1377 | where
|
1386 1378 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1387 1379 | B: 'static,
|
1388 1380 |
|
1389 1381 | B::Data: Send,
|
1390 1382 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1391 1383 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1392 1384 | {
|
1393 1385 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1394 1386 | type Future = TestPostNoPayloadInputFuture;
|
1395 1387 |
|
1396 1388 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1397 1389 | let fut = async move {
|
1398 1390 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1399 1391 | request.headers(),
|
1400 1392 | &CONTENT_TYPE_TESTPOSTNOPAYLOAD,
|
1401 1393 | ) {
|
1402 1394 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1403 1395 | }
|
1404 1396 | crate::protocol_serde::shape_test_post_no_payload::de_test_post_no_payload_http_request(
|
1405 1397 | request,
|
1406 1398 | )
|
1407 1399 | .await
|
1408 - | .map_err(Into::into)
|
1409 1400 | };
|
1410 1401 | use ::futures_util::future::TryFutureExt;
|
1411 1402 | let fut = fut.map_err(
|
1412 1403 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1413 1404 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1414 1405 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1415 1406 | e,
|
1416 1407 | )
|
1417 1408 | },
|
1418 1409 | );
|
1419 1410 | TestPostNoPayloadInputFuture {
|
1420 1411 | inner: Box::pin(fut),
|
1421 1412 | }
|
1422 1413 | }
|
1423 1414 | }
|
1424 1415 | impl
|
1425 1416 | ::aws_smithy_http_server::response::IntoResponse<
|
1426 1417 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1427 1418 | > for crate::output::TestPostNoPayloadOutput
|
1428 1419 | {
|
1429 1420 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1430 1421 | match crate::protocol_serde::shape_test_post_no_payload::ser_test_post_no_payload_http_response(self) {
|
1431 1422 | Ok(response) => response,
|
1432 1423 | Err(e) => {
|
1433 1424 | ::tracing::error!(error = %e, "failed to serialize response");
|
1434 1425 | ::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))
|
1435 1426 | }
|
1436 1427 | }
|
1437 1428 | }
|
1438 1429 | }
|
@@ -1562,1553 +1622,1612 @@
1562 1553 | }
|
1563 1554 |
|
1564 1555 | impl<B>
|
1565 1556 | ::aws_smithy_http_server::request::FromRequest<
|
1566 1557 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1567 1558 | B,
|
1568 1559 | > for crate::input::TestGetNoPayloadInput
|
1569 1560 | where
|
1570 1561 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1571 1562 | B: 'static,
|
1572 1563 |
|
1573 1564 | B::Data: Send,
|
1574 1565 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1575 1566 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1576 1567 | {
|
1577 1568 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1578 1569 | type Future = TestGetNoPayloadInputFuture;
|
1579 1570 |
|
1580 1571 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1581 1572 | let fut = async move {
|
1582 1573 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1583 1574 | request.headers(),
|
1584 1575 | &CONTENT_TYPE_TESTGETNOPAYLOAD,
|
1585 1576 | ) {
|
1586 1577 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1587 1578 | }
|
1588 1579 | crate::protocol_serde::shape_test_get_no_payload::de_test_get_no_payload_http_request(
|
1589 1580 | request,
|
1590 1581 | )
|
1591 1582 | .await
|
1592 - | .map_err(Into::into)
|
1593 1583 | };
|
1594 1584 | use ::futures_util::future::TryFutureExt;
|
1595 1585 | let fut = fut.map_err(
|
1596 1586 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1597 1587 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1598 1588 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1599 1589 | e,
|
1600 1590 | )
|
1601 1591 | },
|
1602 1592 | );
|
1603 1593 | TestGetNoPayloadInputFuture {
|
1604 1594 | inner: Box::pin(fut),
|
1605 1595 | }
|
1606 1596 | }
|
1607 1597 | }
|
1608 1598 | impl
|
1609 1599 | ::aws_smithy_http_server::response::IntoResponse<
|
1610 1600 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1611 1601 | > for crate::output::TestGetNoPayloadOutput
|
1612 1602 | {
|
1613 1603 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1614 1604 | match crate::protocol_serde::shape_test_get_no_payload::ser_test_get_no_payload_http_response(self) {
|
1615 1605 | Ok(response) => response,
|
1616 1606 | Err(e) => {
|
1617 1607 | ::tracing::error!(error = %e, "failed to serialize response");
|
1618 1608 | ::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))
|
1619 1609 | }
|
1620 1610 | }
|
1621 1611 | }
|
1622 1612 | }
|
@@ -1739,1729 +1799,1788 @@
1739 1729 | self: std::pin::Pin<&mut Self>,
|
1740 1730 | cx: &mut std::task::Context<'_>,
|
1741 1731 | ) -> std::task::Poll<Self::Output> {
|
1742 1732 | let this = self.project();
|
1743 1733 | this.inner.as_mut().poll(cx)
|
1744 1734 | }
|
1745 1735 | }
|
1746 1736 |
|
1747 1737 | impl<B>
|
1748 1738 | ::aws_smithy_http_server::request::FromRequest<
|
1749 1739 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1750 1740 | B,
|
1751 1741 | > for crate::input::TestPayloadBlobInput
|
1752 1742 | where
|
1753 1743 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1754 1744 | B: 'static,
|
1755 1745 |
|
1756 1746 | B::Data: Send,
|
1757 1747 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1758 1748 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1759 1749 | {
|
1760 1750 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1761 1751 | type Future = TestPayloadBlobInputFuture;
|
1762 1752 |
|
1763 1753 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1764 1754 | let fut = async move {
|
1765 1755 | crate::protocol_serde::shape_test_payload_blob::de_test_payload_blob_http_request(
|
1766 1756 | request,
|
1767 1757 | )
|
1768 1758 | .await
|
1769 - | .map_err(Into::into)
|
1770 1759 | };
|
1771 1760 | use ::futures_util::future::TryFutureExt;
|
1772 1761 | let fut = fut.map_err(
|
1773 1762 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1774 1763 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1775 1764 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1776 1765 | e,
|
1777 1766 | )
|
1778 1767 | },
|
1779 1768 | );
|
1780 1769 | TestPayloadBlobInputFuture {
|
1781 1770 | inner: Box::pin(fut),
|
1782 1771 | }
|
1783 1772 | }
|
1784 1773 | }
|
1785 1774 | impl
|
1786 1775 | ::aws_smithy_http_server::response::IntoResponse<
|
1787 1776 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1788 1777 | > for crate::output::TestPayloadBlobOutput
|
1789 1778 | {
|
1790 1779 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1791 1780 | match crate::protocol_serde::shape_test_payload_blob::ser_test_payload_blob_http_response(
|
1792 1781 | self,
|
1793 1782 | ) {
|
1794 1783 | Ok(response) => response,
|
1795 1784 | Err(e) => {
|
1796 1785 | ::tracing::error!(error = %e, "failed to serialize response");
|
1797 1786 | ::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))
|
1798 1787 | }
|
1799 1788 | }
|
@@ -1929,1918 +1989,1977 @@
1929 1918 | this.inner.as_mut().poll(cx)
|
1930 1919 | }
|
1931 1920 | }
|
1932 1921 |
|
1933 1922 | impl<B>
|
1934 1923 | ::aws_smithy_http_server::request::FromRequest<
|
1935 1924 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1936 1925 | B,
|
1937 1926 | > for crate::input::TestPayloadStructureInput
|
1938 1927 | where
|
1939 1928 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1940 1929 | B: 'static,
|
1941 1930 |
|
1942 1931 | B::Data: Send,
|
1943 1932 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1944 1933 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1945 1934 | {
|
1946 1935 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1947 1936 | type Future = TestPayloadStructureInputFuture;
|
1948 1937 |
|
1949 1938 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1950 1939 | let fut = async move {
|
1951 1940 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1952 1941 | request.headers(),
|
1953 1942 | &CONTENT_TYPE_TESTPAYLOADSTRUCTURE,
|
1954 1943 | ) {
|
1955 1944 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1956 1945 | }
|
1957 1946 | crate::protocol_serde::shape_test_payload_structure::de_test_payload_structure_http_request(request)
|
1958 1947 | .await
|
1959 - | .map_err(Into::into)
|
1960 1948 | };
|
1961 1949 | use ::futures_util::future::TryFutureExt;
|
1962 1950 | let fut = fut.map_err(
|
1963 1951 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1964 1952 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1965 1953 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1966 1954 | e,
|
1967 1955 | )
|
1968 1956 | },
|
1969 1957 | );
|
1970 1958 | TestPayloadStructureInputFuture {
|
1971 1959 | inner: Box::pin(fut),
|
1972 1960 | }
|
1973 1961 | }
|
1974 1962 | }
|
1975 1963 | impl
|
1976 1964 | ::aws_smithy_http_server::response::IntoResponse<
|
1977 1965 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1978 1966 | > for crate::output::TestPayloadStructureOutput
|
1979 1967 | {
|
1980 1968 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1981 1969 | match crate::protocol_serde::shape_test_payload_structure::ser_test_payload_structure_http_response(self) {
|
1982 1970 | Ok(response) => response,
|
1983 1971 | Err(e) => {
|
1984 1972 | ::tracing::error!(error = %e, "failed to serialize response");
|
1985 1973 | ::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))
|
1986 1974 | }
|
1987 1975 | }
|
1988 1976 | }
|
1989 1977 | }
|
@@ -2193,2181 +2253,2240 @@
2193 2181 | }
|
2194 2182 |
|
2195 2183 | impl<B>
|
2196 2184 | ::aws_smithy_http_server::request::FromRequest<
|
2197 2185 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2198 2186 | B,
|
2199 2187 | > for crate::input::TestBodyStructureInput
|
2200 2188 | where
|
2201 2189 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2202 2190 | B: 'static,
|
2203 2191 |
|
2204 2192 | B::Data: Send,
|
2205 2193 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2206 2194 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2207 2195 | {
|
2208 2196 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2209 2197 | type Future = TestBodyStructureInputFuture;
|
2210 2198 |
|
2211 2199 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2212 2200 | let fut = async move {
|
2213 2201 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2214 2202 | request.headers(),
|
2215 2203 | &CONTENT_TYPE_TESTBODYSTRUCTURE,
|
2216 2204 | ) {
|
2217 2205 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2218 2206 | }
|
2219 2207 | crate::protocol_serde::shape_test_body_structure::de_test_body_structure_http_request(
|
2220 2208 | request,
|
2221 2209 | )
|
2222 2210 | .await
|
2223 - | .map_err(Into::into)
|
2224 2211 | };
|
2225 2212 | use ::futures_util::future::TryFutureExt;
|
2226 2213 | let fut = fut.map_err(
|
2227 2214 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2228 2215 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2229 2216 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
2230 2217 | e,
|
2231 2218 | )
|
2232 2219 | },
|
2233 2220 | );
|
2234 2221 | TestBodyStructureInputFuture {
|
2235 2222 | inner: Box::pin(fut),
|
2236 2223 | }
|
2237 2224 | }
|
2238 2225 | }
|
2239 2226 | impl
|
2240 2227 | ::aws_smithy_http_server::response::IntoResponse<
|
2241 2228 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2242 2229 | > for crate::output::TestBodyStructureOutput
|
2243 2230 | {
|
2244 2231 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2245 2232 | match crate::protocol_serde::shape_test_body_structure::ser_test_body_structure_http_response(self) {
|
2246 2233 | Ok(response) => response,
|
2247 2234 | Err(e) => {
|
2248 2235 | ::tracing::error!(error = %e, "failed to serialize response");
|
2249 2236 | ::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))
|
2250 2237 | }
|
2251 2238 | }
|
2252 2239 | }
|
2253 2240 | }
|
@@ -2387,2374 +2447,2433 @@
2387 2374 | this.inner.as_mut().poll(cx)
|
2388 2375 | }
|
2389 2376 | }
|
2390 2377 |
|
2391 2378 | impl<B>
|
2392 2379 | ::aws_smithy_http_server::request::FromRequest<
|
2393 2380 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2394 2381 | B,
|
2395 2382 | > for crate::input::MalformedAcceptWithGenericStringInput
|
2396 2383 | where
|
2397 2384 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2398 2385 | B: 'static,
|
2399 2386 |
|
2400 2387 | B::Data: Send,
|
2401 2388 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2402 2389 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2403 2390 | {
|
2404 2391 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2405 2392 | type Future = MalformedAcceptWithGenericStringInputFuture;
|
2406 2393 |
|
2407 2394 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2408 2395 | let fut = async move {
|
2409 2396 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2410 2397 | request.headers(),
|
2411 2398 | &CONTENT_TYPE_MALFORMEDACCEPTWITHGENERICSTRING,
|
2412 2399 | ) {
|
2413 2400 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2414 2401 | }
|
2415 2402 | crate::protocol_serde::shape_malformed_accept_with_generic_string::de_malformed_accept_with_generic_string_http_request(request)
|
2416 2403 | .await
|
2417 - | .map_err(Into::into)
|
2418 2404 | };
|
2419 2405 | use ::futures_util::future::TryFutureExt;
|
2420 2406 | let fut = fut.map_err(
|
2421 2407 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2422 2408 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2423 2409 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
2424 2410 | e,
|
2425 2411 | )
|
2426 2412 | },
|
2427 2413 | );
|
2428 2414 | MalformedAcceptWithGenericStringInputFuture {
|
2429 2415 | inner: Box::pin(fut),
|
2430 2416 | }
|
2431 2417 | }
|
2432 2418 | }
|
2433 2419 | impl
|
2434 2420 | ::aws_smithy_http_server::response::IntoResponse<
|
2435 2421 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2436 2422 | > for crate::output::MalformedAcceptWithGenericStringOutput
|
2437 2423 | {
|
2438 2424 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2439 2425 | match crate::protocol_serde::shape_malformed_accept_with_generic_string::ser_malformed_accept_with_generic_string_http_response(self) {
|
2440 2426 | Ok(response) => response,
|
2441 2427 | Err(e) => {
|
2442 2428 | ::tracing::error!(error = %e, "failed to serialize response");
|
2443 2429 | ::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))
|
2444 2430 | }
|
2445 2431 | }
|
2446 2432 | }
|
2447 2433 | }
|
@@ -2521,2507 +2581,2566 @@
2521 2507 | this.inner.as_mut().poll(cx)
|
2522 2508 | }
|
2523 2509 | }
|
2524 2510 |
|
2525 2511 | impl<B>
|
2526 2512 | ::aws_smithy_http_server::request::FromRequest<
|
2527 2513 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2528 2514 | B,
|
2529 2515 | > for crate::input::MalformedAcceptWithPayloadInput
|
2530 2516 | where
|
2531 2517 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2532 2518 | B: 'static,
|
2533 2519 |
|
2534 2520 | B::Data: Send,
|
2535 2521 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2536 2522 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2537 2523 | {
|
2538 2524 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2539 2525 | type Future = MalformedAcceptWithPayloadInputFuture;
|
2540 2526 |
|
2541 2527 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2542 2528 | let fut = async move {
|
2543 2529 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2544 2530 | request.headers(),
|
2545 2531 | &CONTENT_TYPE_MALFORMEDACCEPTWITHPAYLOAD,
|
2546 2532 | ) {
|
2547 2533 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2548 2534 | }
|
2549 2535 | crate::protocol_serde::shape_malformed_accept_with_payload::de_malformed_accept_with_payload_http_request(request)
|
2550 2536 | .await
|
2551 - | .map_err(Into::into)
|
2552 2537 | };
|
2553 2538 | use ::futures_util::future::TryFutureExt;
|
2554 2539 | let fut = fut.map_err(
|
2555 2540 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2556 2541 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2557 2542 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
2558 2543 | e,
|
2559 2544 | )
|
2560 2545 | },
|
2561 2546 | );
|
2562 2547 | MalformedAcceptWithPayloadInputFuture {
|
2563 2548 | inner: Box::pin(fut),
|
2564 2549 | }
|
2565 2550 | }
|
2566 2551 | }
|
2567 2552 | impl
|
2568 2553 | ::aws_smithy_http_server::response::IntoResponse<
|
2569 2554 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2570 2555 | > for crate::output::MalformedAcceptWithPayloadOutput
|
2571 2556 | {
|
2572 2557 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2573 2558 | match crate::protocol_serde::shape_malformed_accept_with_payload::ser_malformed_accept_with_payload_http_response(self) {
|
2574 2559 | Ok(response) => response,
|
2575 2560 | Err(e) => {
|
2576 2561 | ::tracing::error!(error = %e, "failed to serialize response");
|
2577 2562 | ::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))
|
2578 2563 | }
|
2579 2564 | }
|
2580 2565 | }
|
2581 2566 | }
|
@@ -2649,2634 +2709,2693 @@
2649 2634 | this.inner.as_mut().poll(cx)
|
2650 2635 | }
|
2651 2636 | }
|
2652 2637 |
|
2653 2638 | impl<B>
|
2654 2639 | ::aws_smithy_http_server::request::FromRequest<
|
2655 2640 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2656 2641 | B,
|
2657 2642 | > for crate::input::MalformedAcceptWithBodyInput
|
2658 2643 | where
|
2659 2644 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2660 2645 | B: 'static,
|
2661 2646 |
|
2662 2647 | B::Data: Send,
|
2663 2648 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2664 2649 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2665 2650 | {
|
2666 2651 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2667 2652 | type Future = MalformedAcceptWithBodyInputFuture;
|
2668 2653 |
|
2669 2654 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2670 2655 | let fut = async move {
|
2671 2656 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2672 2657 | request.headers(),
|
2673 2658 | &CONTENT_TYPE_MALFORMEDACCEPTWITHBODY,
|
2674 2659 | ) {
|
2675 2660 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2676 2661 | }
|
2677 2662 | crate::protocol_serde::shape_malformed_accept_with_body::de_malformed_accept_with_body_http_request(request)
|
2678 2663 | .await
|
2679 - | .map_err(Into::into)
|
2680 2664 | };
|
2681 2665 | use ::futures_util::future::TryFutureExt;
|
2682 2666 | let fut = fut.map_err(
|
2683 2667 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2684 2668 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2685 2669 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
2686 2670 | e,
|
2687 2671 | )
|
2688 2672 | },
|
2689 2673 | );
|
2690 2674 | MalformedAcceptWithBodyInputFuture {
|
2691 2675 | inner: Box::pin(fut),
|
2692 2676 | }
|
2693 2677 | }
|
2694 2678 | }
|
2695 2679 | impl
|
2696 2680 | ::aws_smithy_http_server::response::IntoResponse<
|
2697 2681 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2698 2682 | > for crate::output::MalformedAcceptWithBodyOutput
|
2699 2683 | {
|
2700 2684 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2701 2685 | match crate::protocol_serde::shape_malformed_accept_with_body::ser_malformed_accept_with_body_http_response(self) {
|
2702 2686 | Ok(response) => response,
|
2703 2687 | Err(e) => {
|
2704 2688 | ::tracing::error!(error = %e, "failed to serialize response");
|
2705 2689 | ::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))
|
2706 2690 | }
|
2707 2691 | }
|
2708 2692 | }
|
2709 2693 | }
|
@@ -2777,2761 +2837,2820 @@
2777 2761 | this.inner.as_mut().poll(cx)
|
2778 2762 | }
|
2779 2763 | }
|
2780 2764 |
|
2781 2765 | impl<B>
|
2782 2766 | ::aws_smithy_http_server::request::FromRequest<
|
2783 2767 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2784 2768 | B,
|
2785 2769 | > for crate::input::MalformedContentTypeWithGenericStringInput
|
2786 2770 | where
|
2787 2771 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2788 2772 | B: 'static,
|
2789 2773 |
|
2790 2774 | B::Data: Send,
|
2791 2775 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2792 2776 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2793 2777 | {
|
2794 2778 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2795 2779 | type Future = MalformedContentTypeWithGenericStringInputFuture;
|
2796 2780 |
|
2797 2781 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2798 2782 | let fut = async move {
|
2799 2783 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2800 2784 | request.headers(),
|
2801 2785 | &CONTENT_TYPE_MALFORMEDCONTENTTYPEWITHGENERICSTRING,
|
2802 2786 | ) {
|
2803 2787 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2804 2788 | }
|
2805 2789 | crate::protocol_serde::shape_malformed_content_type_with_generic_string::de_malformed_content_type_with_generic_string_http_request(request)
|
2806 2790 | .await
|
2807 - | .map_err(Into::into)
|
2808 2791 | };
|
2809 2792 | use ::futures_util::future::TryFutureExt;
|
2810 2793 | let fut = fut.map_err(
|
2811 2794 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2812 2795 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2813 2796 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
2814 2797 | e,
|
2815 2798 | )
|
2816 2799 | },
|
2817 2800 | );
|
2818 2801 | MalformedContentTypeWithGenericStringInputFuture {
|
2819 2802 | inner: Box::pin(fut),
|
2820 2803 | }
|
2821 2804 | }
|
2822 2805 | }
|
2823 2806 | impl
|
2824 2807 | ::aws_smithy_http_server::response::IntoResponse<
|
2825 2808 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2826 2809 | > for crate::output::MalformedContentTypeWithGenericStringOutput
|
2827 2810 | {
|
2828 2811 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2829 2812 | match crate::protocol_serde::shape_malformed_content_type_with_generic_string::ser_malformed_content_type_with_generic_string_http_response(self) {
|
2830 2813 | Ok(response) => response,
|
2831 2814 | Err(e) => {
|
2832 2815 | ::tracing::error!(error = %e, "failed to serialize response");
|
2833 2816 | ::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))
|
2834 2817 | }
|
2835 2818 | }
|
2836 2819 | }
|
2837 2820 | }
|
@@ -2859,2842 +2919,2901 @@
2859 2842 | this.inner.as_mut().poll(cx)
|
2860 2843 | }
|
2861 2844 | }
|
2862 2845 |
|
2863 2846 | impl<B>
|
2864 2847 | ::aws_smithy_http_server::request::FromRequest<
|
2865 2848 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2866 2849 | B,
|
2867 2850 | > for crate::input::MalformedContentTypeWithPayloadInput
|
2868 2851 | where
|
2869 2852 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2870 2853 | B: 'static,
|
2871 2854 |
|
2872 2855 | B::Data: Send,
|
2873 2856 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2874 2857 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2875 2858 | {
|
2876 2859 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2877 2860 | type Future = MalformedContentTypeWithPayloadInputFuture;
|
2878 2861 |
|
2879 2862 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2880 2863 | let fut = async move {
|
2881 2864 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2882 2865 | request.headers(),
|
2883 2866 | &CONTENT_TYPE_MALFORMEDCONTENTTYPEWITHPAYLOAD,
|
2884 2867 | ) {
|
2885 2868 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2886 2869 | }
|
2887 2870 | crate::protocol_serde::shape_malformed_content_type_with_payload::de_malformed_content_type_with_payload_http_request(request)
|
2888 2871 | .await
|
2889 - | .map_err(Into::into)
|
2890 2872 | };
|
2891 2873 | use ::futures_util::future::TryFutureExt;
|
2892 2874 | let fut = fut.map_err(
|
2893 2875 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2894 2876 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2895 2877 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
2896 2878 | e,
|
2897 2879 | )
|
2898 2880 | },
|
2899 2881 | );
|
2900 2882 | MalformedContentTypeWithPayloadInputFuture {
|
2901 2883 | inner: Box::pin(fut),
|
2902 2884 | }
|
2903 2885 | }
|
2904 2886 | }
|
2905 2887 | impl
|
2906 2888 | ::aws_smithy_http_server::response::IntoResponse<
|
2907 2889 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
2908 2890 | > for crate::output::MalformedContentTypeWithPayloadOutput
|
2909 2891 | {
|
2910 2892 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2911 2893 | match crate::protocol_serde::shape_malformed_content_type_with_payload::ser_malformed_content_type_with_payload_http_response(self) {
|
2912 2894 | Ok(response) => response,
|
2913 2895 | Err(e) => {
|
2914 2896 | ::tracing::error!(error = %e, "failed to serialize response");
|
2915 2897 | ::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))
|
2916 2898 | }
|
2917 2899 | }
|
2918 2900 | }
|
2919 2901 | }
|
@@ -3039,3021 +3099,3080 @@
3039 3021 | this.inner.as_mut().poll(cx)
|
3040 3022 | }
|
3041 3023 | }
|
3042 3024 |
|
3043 3025 | impl<B>
|
3044 3026 | ::aws_smithy_http_server::request::FromRequest<
|
3045 3027 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3046 3028 | B,
|
3047 3029 | > for crate::input::MalformedContentTypeWithBodyInput
|
3048 3030 | where
|
3049 3031 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3050 3032 | B: 'static,
|
3051 3033 |
|
3052 3034 | B::Data: Send,
|
3053 3035 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3054 3036 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3055 3037 | {
|
3056 3038 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3057 3039 | type Future = MalformedContentTypeWithBodyInputFuture;
|
3058 3040 |
|
3059 3041 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3060 3042 | let fut = async move {
|
3061 3043 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3062 3044 | request.headers(),
|
3063 3045 | &CONTENT_TYPE_MALFORMEDCONTENTTYPEWITHBODY,
|
3064 3046 | ) {
|
3065 3047 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3066 3048 | }
|
3067 3049 | crate::protocol_serde::shape_malformed_content_type_with_body::de_malformed_content_type_with_body_http_request(request)
|
3068 3050 | .await
|
3069 - | .map_err(Into::into)
|
3070 3051 | };
|
3071 3052 | use ::futures_util::future::TryFutureExt;
|
3072 3053 | let fut = fut.map_err(
|
3073 3054 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3074 3055 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3075 3056 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
3076 3057 | e,
|
3077 3058 | )
|
3078 3059 | },
|
3079 3060 | );
|
3080 3061 | MalformedContentTypeWithBodyInputFuture {
|
3081 3062 | inner: Box::pin(fut),
|
3082 3063 | }
|
3083 3064 | }
|
3084 3065 | }
|
3085 3066 | impl
|
3086 3067 | ::aws_smithy_http_server::response::IntoResponse<
|
3087 3068 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3088 3069 | > for crate::output::MalformedContentTypeWithBodyOutput
|
3089 3070 | {
|
3090 3071 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3091 3072 | match crate::protocol_serde::shape_malformed_content_type_with_body::ser_malformed_content_type_with_body_http_response(self) {
|
3092 3073 | Ok(response) => response,
|
3093 3074 | Err(e) => {
|
3094 3075 | ::tracing::error!(error = %e, "failed to serialize response");
|
3095 3076 | ::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))
|
3096 3077 | }
|
3097 3078 | }
|
3098 3079 | }
|
3099 3080 | }
|
@@ -3218,3199 +3278,3258 @@
3218 3199 | this.inner.as_mut().poll(cx)
|
3219 3200 | }
|
3220 3201 | }
|
3221 3202 |
|
3222 3203 | impl<B>
|
3223 3204 | ::aws_smithy_http_server::request::FromRequest<
|
3224 3205 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3225 3206 | B,
|
3226 3207 | > for crate::input::MalformedContentTypeWithoutBodyInput
|
3227 3208 | where
|
3228 3209 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3229 3210 | B: 'static,
|
3230 3211 |
|
3231 3212 | B::Data: Send,
|
3232 3213 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3233 3214 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3234 3215 | {
|
3235 3216 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3236 3217 | type Future = MalformedContentTypeWithoutBodyInputFuture;
|
3237 3218 |
|
3238 3219 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3239 3220 | let fut = async move {
|
3240 3221 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3241 3222 | request.headers(),
|
3242 3223 | &CONTENT_TYPE_MALFORMEDCONTENTTYPEWITHOUTBODY,
|
3243 3224 | ) {
|
3244 3225 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3245 3226 | }
|
3246 3227 | crate::protocol_serde::shape_malformed_content_type_without_body::de_malformed_content_type_without_body_http_request(request)
|
3247 3228 | .await
|
3248 - | .map_err(Into::into)
|
3249 3229 | };
|
3250 3230 | use ::futures_util::future::TryFutureExt;
|
3251 3231 | let fut = fut.map_err(
|
3252 3232 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3253 3233 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3254 3234 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
3255 3235 | e,
|
3256 3236 | )
|
3257 3237 | },
|
3258 3238 | );
|
3259 3239 | MalformedContentTypeWithoutBodyInputFuture {
|
3260 3240 | inner: Box::pin(fut),
|
3261 3241 | }
|
3262 3242 | }
|
3263 3243 | }
|
3264 3244 | impl
|
3265 3245 | ::aws_smithy_http_server::response::IntoResponse<
|
3266 3246 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3267 3247 | > for crate::output::MalformedContentTypeWithoutBodyOutput
|
3268 3248 | {
|
3269 3249 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3270 3250 | match crate::protocol_serde::shape_malformed_content_type_without_body::ser_malformed_content_type_without_body_http_response(self) {
|
3271 3251 | Ok(response) => response,
|
3272 3252 | Err(e) => {
|
3273 3253 | ::tracing::error!(error = %e, "failed to serialize response");
|
3274 3254 | ::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))
|
3275 3255 | }
|
3276 3256 | }
|
3277 3257 | }
|
3278 3258 | }
|
@@ -3351,3331 +3411,3390 @@
3351 3331 | this.inner.as_mut().poll(cx)
|
3352 3332 | }
|
3353 3333 | }
|
3354 3334 |
|
3355 3335 | impl<B>
|
3356 3336 | ::aws_smithy_http_server::request::FromRequest<
|
3357 3337 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3358 3338 | B,
|
3359 3339 | > for crate::input::MalformedTimestampBodyHttpDateInput
|
3360 3340 | where
|
3361 3341 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3362 3342 | B: 'static,
|
3363 3343 |
|
3364 3344 | B::Data: Send,
|
3365 3345 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3366 3346 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3367 3347 | {
|
3368 3348 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3369 3349 | type Future = MalformedTimestampBodyHttpDateInputFuture;
|
3370 3350 |
|
3371 3351 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3372 3352 | let fut = async move {
|
3373 3353 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3374 3354 | request.headers(),
|
3375 3355 | &CONTENT_TYPE_MALFORMEDTIMESTAMPBODYHTTPDATE,
|
3376 3356 | ) {
|
3377 3357 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3378 3358 | }
|
3379 3359 | crate::protocol_serde::shape_malformed_timestamp_body_http_date::de_malformed_timestamp_body_http_date_http_request(request)
|
3380 3360 | .await
|
3381 - | .map_err(Into::into)
|
3382 3361 | };
|
3383 3362 | use ::futures_util::future::TryFutureExt;
|
3384 3363 | let fut = fut.map_err(
|
3385 3364 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3386 3365 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3387 3366 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
3388 3367 | e,
|
3389 3368 | )
|
3390 3369 | },
|
3391 3370 | );
|
3392 3371 | MalformedTimestampBodyHttpDateInputFuture {
|
3393 3372 | inner: Box::pin(fut),
|
3394 3373 | }
|
3395 3374 | }
|
3396 3375 | }
|
3397 3376 | impl
|
3398 3377 | ::aws_smithy_http_server::response::IntoResponse<
|
3399 3378 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3400 3379 | > for crate::output::MalformedTimestampBodyHttpDateOutput
|
3401 3380 | {
|
3402 3381 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3403 3382 | match crate::protocol_serde::shape_malformed_timestamp_body_http_date::ser_malformed_timestamp_body_http_date_http_response(self) {
|
3404 3383 | Ok(response) => response,
|
3405 3384 | Err(e) => {
|
3406 3385 | ::tracing::error!(error = %e, "failed to serialize response");
|
3407 3386 | ::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))
|
3408 3387 | }
|
3409 3388 | }
|
3410 3389 | }
|
3411 3390 | }
|
@@ -3691,3670 +3751,3729 @@
3691 3670 | this.inner.as_mut().poll(cx)
|
3692 3671 | }
|
3693 3672 | }
|
3694 3673 |
|
3695 3674 | impl<B>
|
3696 3675 | ::aws_smithy_http_server::request::FromRequest<
|
3697 3676 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3698 3677 | B,
|
3699 3678 | > for crate::input::MalformedTimestampBodyDateTimeInput
|
3700 3679 | where
|
3701 3680 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3702 3681 | B: 'static,
|
3703 3682 |
|
3704 3683 | B::Data: Send,
|
3705 3684 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3706 3685 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3707 3686 | {
|
3708 3687 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3709 3688 | type Future = MalformedTimestampBodyDateTimeInputFuture;
|
3710 3689 |
|
3711 3690 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3712 3691 | let fut = async move {
|
3713 3692 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3714 3693 | request.headers(),
|
3715 3694 | &CONTENT_TYPE_MALFORMEDTIMESTAMPBODYDATETIME,
|
3716 3695 | ) {
|
3717 3696 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3718 3697 | }
|
3719 3698 | crate::protocol_serde::shape_malformed_timestamp_body_date_time::de_malformed_timestamp_body_date_time_http_request(request)
|
3720 3699 | .await
|
3721 - | .map_err(Into::into)
|
3722 3700 | };
|
3723 3701 | use ::futures_util::future::TryFutureExt;
|
3724 3702 | let fut = fut.map_err(
|
3725 3703 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3726 3704 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3727 3705 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
3728 3706 | e,
|
3729 3707 | )
|
3730 3708 | },
|
3731 3709 | );
|
3732 3710 | MalformedTimestampBodyDateTimeInputFuture {
|
3733 3711 | inner: Box::pin(fut),
|
3734 3712 | }
|
3735 3713 | }
|
3736 3714 | }
|
3737 3715 | impl
|
3738 3716 | ::aws_smithy_http_server::response::IntoResponse<
|
3739 3717 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
3740 3718 | > for crate::output::MalformedTimestampBodyDateTimeOutput
|
3741 3719 | {
|
3742 3720 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3743 3721 | match crate::protocol_serde::shape_malformed_timestamp_body_date_time::ser_malformed_timestamp_body_date_time_http_response(self) {
|
3744 3722 | Ok(response) => response,
|
3745 3723 | Err(e) => {
|
3746 3724 | ::tracing::error!(error = %e, "failed to serialize response");
|
3747 3725 | ::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))
|
3748 3726 | }
|
3749 3727 | }
|
3750 3728 | }
|
3751 3729 | }
|
@@ -4704,4682 +4764,4741 @@
4704 4682 | this.inner.as_mut().poll(cx)
|
4705 4683 | }
|
4706 4684 | }
|
4707 4685 |
|
4708 4686 | impl<B>
|
4709 4687 | ::aws_smithy_http_server::request::FromRequest<
|
4710 4688 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
4711 4689 | B,
|
4712 4690 | > for crate::input::MalformedTimestampBodyDefaultInput
|
4713 4691 | where
|
4714 4692 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
4715 4693 | B: 'static,
|
4716 4694 |
|
4717 4695 | B::Data: Send,
|
4718 4696 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4719 4697 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
4720 4698 | {
|
4721 4699 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4722 4700 | type Future = MalformedTimestampBodyDefaultInputFuture;
|
4723 4701 |
|
4724 4702 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4725 4703 | let fut = async move {
|
4726 4704 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
4727 4705 | request.headers(),
|
4728 4706 | &CONTENT_TYPE_MALFORMEDTIMESTAMPBODYDEFAULT,
|
4729 4707 | ) {
|
4730 4708 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4731 4709 | }
|
4732 4710 | crate::protocol_serde::shape_malformed_timestamp_body_default::de_malformed_timestamp_body_default_http_request(request)
|
4733 4711 | .await
|
4734 - | .map_err(Into::into)
|
4735 4712 | };
|
4736 4713 | use ::futures_util::future::TryFutureExt;
|
4737 4714 | let fut = fut.map_err(
|
4738 4715 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4739 4716 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4740 4717 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
4741 4718 | e,
|
4742 4719 | )
|
4743 4720 | },
|
4744 4721 | );
|
4745 4722 | MalformedTimestampBodyDefaultInputFuture {
|
4746 4723 | inner: Box::pin(fut),
|
4747 4724 | }
|
4748 4725 | }
|
4749 4726 | }
|
4750 4727 | impl
|
4751 4728 | ::aws_smithy_http_server::response::IntoResponse<
|
4752 4729 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
4753 4730 | > for crate::output::MalformedTimestampBodyDefaultOutput
|
4754 4731 | {
|
4755 4732 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
4756 4733 | match crate::protocol_serde::shape_malformed_timestamp_body_default::ser_malformed_timestamp_body_default_http_response(self) {
|
4757 4734 | Ok(response) => response,
|
4758 4735 | Err(e) => {
|
4759 4736 | ::tracing::error!(error = %e, "failed to serialize response");
|
4760 4737 | ::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))
|
4761 4738 | }
|
4762 4739 | }
|
4763 4740 | }
|
4764 4741 | }
|
@@ -5563,5540 +5623,5599 @@
5563 5540 | this.inner.as_mut().poll(cx)
|
5564 5541 | }
|
5565 5542 | }
|
5566 5543 |
|
5567 5544 | impl<B>
|
5568 5545 | ::aws_smithy_http_server::request::FromRequest<
|
5569 5546 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
5570 5547 | B,
|
5571 5548 | > for crate::input::MalformedTimestampHeaderEpochInput
|
5572 5549 | where
|
5573 5550 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
5574 5551 | B: 'static,
|
5575 5552 |
|
5576 5553 | B::Data: Send,
|
5577 5554 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5578 5555 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
5579 5556 | {
|
5580 5557 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5581 5558 | type Future = MalformedTimestampHeaderEpochInputFuture;
|
5582 5559 |
|
5583 5560 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5584 5561 | let fut = async move {
|
5585 5562 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
5586 5563 | request.headers(),
|
5587 5564 | &CONTENT_TYPE_MALFORMEDTIMESTAMPHEADEREPOCH,
|
5588 5565 | ) {
|
5589 5566 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5590 5567 | }
|
5591 5568 | crate::protocol_serde::shape_malformed_timestamp_header_epoch::de_malformed_timestamp_header_epoch_http_request(request)
|
5592 5569 | .await
|
5593 - | .map_err(Into::into)
|
5594 5570 | };
|
5595 5571 | use ::futures_util::future::TryFutureExt;
|
5596 5572 | let fut = fut.map_err(
|
5597 5573 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5598 5574 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5599 5575 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
5600 5576 | e,
|
5601 5577 | )
|
5602 5578 | },
|
5603 5579 | );
|
5604 5580 | MalformedTimestampHeaderEpochInputFuture {
|
5605 5581 | inner: Box::pin(fut),
|
5606 5582 | }
|
5607 5583 | }
|
5608 5584 | }
|
5609 5585 | impl
|
5610 5586 | ::aws_smithy_http_server::response::IntoResponse<
|
5611 5587 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
5612 5588 | > for crate::output::MalformedTimestampHeaderEpochOutput
|
5613 5589 | {
|
5614 5590 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
5615 5591 | match crate::protocol_serde::shape_malformed_timestamp_header_epoch::ser_malformed_timestamp_header_epoch_http_response(self) {
|
5616 5592 | Ok(response) => response,
|
5617 5593 | Err(e) => {
|
5618 5594 | ::tracing::error!(error = %e, "failed to serialize response");
|
5619 5595 | ::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))
|
5620 5596 | }
|
5621 5597 | }
|
5622 5598 | }
|
5623 5599 | }
|
@@ -6123,6099 +6183,6158 @@
6123 6099 | this.inner.as_mut().poll(cx)
|
6124 6100 | }
|
6125 6101 | }
|
6126 6102 |
|
6127 6103 | impl<B>
|
6128 6104 | ::aws_smithy_http_server::request::FromRequest<
|
6129 6105 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
6130 6106 | B,
|
6131 6107 | > for crate::input::MalformedTimestampHeaderDateTimeInput
|
6132 6108 | where
|
6133 6109 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
6134 6110 | B: 'static,
|
6135 6111 |
|
6136 6112 | B::Data: Send,
|
6137 6113 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6138 6114 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
6139 6115 | {
|
6140 6116 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6141 6117 | type Future = MalformedTimestampHeaderDateTimeInputFuture;
|
6142 6118 |
|
6143 6119 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6144 6120 | let fut = async move {
|
6145 6121 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
6146 6122 | request.headers(),
|
6147 6123 | &CONTENT_TYPE_MALFORMEDTIMESTAMPHEADERDATETIME,
|
6148 6124 | ) {
|
6149 6125 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6150 6126 | }
|
6151 6127 | crate::protocol_serde::shape_malformed_timestamp_header_date_time::de_malformed_timestamp_header_date_time_http_request(request)
|
6152 6128 | .await
|
6153 - | .map_err(Into::into)
|
6154 6129 | };
|
6155 6130 | use ::futures_util::future::TryFutureExt;
|
6156 6131 | let fut = fut.map_err(
|
6157 6132 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6158 6133 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6159 6134 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
6160 6135 | e,
|
6161 6136 | )
|
6162 6137 | },
|
6163 6138 | );
|
6164 6139 | MalformedTimestampHeaderDateTimeInputFuture {
|
6165 6140 | inner: Box::pin(fut),
|
6166 6141 | }
|
6167 6142 | }
|
6168 6143 | }
|
6169 6144 | impl
|
6170 6145 | ::aws_smithy_http_server::response::IntoResponse<
|
6171 6146 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
6172 6147 | > for crate::output::MalformedTimestampHeaderDateTimeOutput
|
6173 6148 | {
|
6174 6149 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
6175 6150 | match crate::protocol_serde::shape_malformed_timestamp_header_date_time::ser_malformed_timestamp_header_date_time_http_response(self) {
|
6176 6151 | Ok(response) => response,
|
6177 6152 | Err(e) => {
|
6178 6153 | ::tracing::error!(error = %e, "failed to serialize response");
|
6179 6154 | ::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))
|
6180 6155 | }
|
6181 6156 | }
|
6182 6157 | }
|
6183 6158 | }
|
@@ -6999,6974 +7059,7033 @@
6999 6974 | this.inner.as_mut().poll(cx)
|
7000 6975 | }
|
7001 6976 | }
|
7002 6977 |
|
7003 6978 | impl<B>
|
7004 6979 | ::aws_smithy_http_server::request::FromRequest<
|
7005 6980 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
7006 6981 | B,
|
7007 6982 | > for crate::input::MalformedTimestampHeaderDefaultInput
|
7008 6983 | where
|
7009 6984 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
7010 6985 | B: 'static,
|
7011 6986 |
|
7012 6987 | B::Data: Send,
|
7013 6988 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7014 6989 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
7015 6990 | {
|
7016 6991 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7017 6992 | type Future = MalformedTimestampHeaderDefaultInputFuture;
|
7018 6993 |
|
7019 6994 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7020 6995 | let fut = async move {
|
7021 6996 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
7022 6997 | request.headers(),
|
7023 6998 | &CONTENT_TYPE_MALFORMEDTIMESTAMPHEADERDEFAULT,
|
7024 6999 | ) {
|
7025 7000 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7026 7001 | }
|
7027 7002 | crate::protocol_serde::shape_malformed_timestamp_header_default::de_malformed_timestamp_header_default_http_request(request)
|
7028 7003 | .await
|
7029 - | .map_err(Into::into)
|
7030 7004 | };
|
7031 7005 | use ::futures_util::future::TryFutureExt;
|
7032 7006 | let fut = fut.map_err(
|
7033 7007 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7034 7008 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7035 7009 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
7036 7010 | e,
|
7037 7011 | )
|
7038 7012 | },
|
7039 7013 | );
|
7040 7014 | MalformedTimestampHeaderDefaultInputFuture {
|
7041 7015 | inner: Box::pin(fut),
|
7042 7016 | }
|
7043 7017 | }
|
7044 7018 | }
|
7045 7019 | impl
|
7046 7020 | ::aws_smithy_http_server::response::IntoResponse<
|
7047 7021 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
7048 7022 | > for crate::output::MalformedTimestampHeaderDefaultOutput
|
7049 7023 | {
|
7050 7024 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
7051 7025 | match crate::protocol_serde::shape_malformed_timestamp_header_default::ser_malformed_timestamp_header_default_http_response(self) {
|
7052 7026 | Ok(response) => response,
|
7053 7027 | Err(e) => {
|
7054 7028 | ::tracing::error!(error = %e, "failed to serialize response");
|
7055 7029 | ::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))
|
7056 7030 | }
|
7057 7031 | }
|
7058 7032 | }
|
7059 7033 | }
|
@@ -7314,7288 +7374,7347 @@
7314 7288 | this.inner.as_mut().poll(cx)
|
7315 7289 | }
|
7316 7290 | }
|
7317 7291 |
|
7318 7292 | impl<B>
|
7319 7293 | ::aws_smithy_http_server::request::FromRequest<
|
7320 7294 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
7321 7295 | B,
|
7322 7296 | > for crate::input::MalformedTimestampQueryEpochInput
|
7323 7297 | where
|
7324 7298 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
7325 7299 | B: 'static,
|
7326 7300 |
|
7327 7301 | B::Data: Send,
|
7328 7302 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7329 7303 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
7330 7304 | {
|
7331 7305 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7332 7306 | type Future = MalformedTimestampQueryEpochInputFuture;
|
7333 7307 |
|
7334 7308 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7335 7309 | let fut = async move {
|
7336 7310 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
7337 7311 | request.headers(),
|
7338 7312 | &CONTENT_TYPE_MALFORMEDTIMESTAMPQUERYEPOCH,
|
7339 7313 | ) {
|
7340 7314 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7341 7315 | }
|
7342 7316 | crate::protocol_serde::shape_malformed_timestamp_query_epoch::de_malformed_timestamp_query_epoch_http_request(request)
|
7343 7317 | .await
|
7344 - | .map_err(Into::into)
|
7345 7318 | };
|
7346 7319 | use ::futures_util::future::TryFutureExt;
|
7347 7320 | let fut = fut.map_err(
|
7348 7321 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7349 7322 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7350 7323 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
7351 7324 | e,
|
7352 7325 | )
|
7353 7326 | },
|
7354 7327 | );
|
7355 7328 | MalformedTimestampQueryEpochInputFuture {
|
7356 7329 | inner: Box::pin(fut),
|
7357 7330 | }
|
7358 7331 | }
|
7359 7332 | }
|
7360 7333 | impl
|
7361 7334 | ::aws_smithy_http_server::response::IntoResponse<
|
7362 7335 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
7363 7336 | > for crate::output::MalformedTimestampQueryEpochOutput
|
7364 7337 | {
|
7365 7338 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
7366 7339 | match crate::protocol_serde::shape_malformed_timestamp_query_epoch::ser_malformed_timestamp_query_epoch_http_response(self) {
|
7367 7340 | Ok(response) => response,
|
7368 7341 | Err(e) => {
|
7369 7342 | ::tracing::error!(error = %e, "failed to serialize response");
|
7370 7343 | ::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))
|
7371 7344 | }
|
7372 7345 | }
|
7373 7346 | }
|
7374 7347 | }
|
@@ -7939,7912 +7999,7971 @@
7939 7912 | this.inner.as_mut().poll(cx)
|
7940 7913 | }
|
7941 7914 | }
|
7942 7915 |
|
7943 7916 | impl<B>
|
7944 7917 | ::aws_smithy_http_server::request::FromRequest<
|
7945 7918 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
7946 7919 | B,
|
7947 7920 | > for crate::input::MalformedTimestampQueryHttpDateInput
|
7948 7921 | where
|
7949 7922 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
7950 7923 | B: 'static,
|
7951 7924 |
|
7952 7925 | B::Data: Send,
|
7953 7926 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7954 7927 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
7955 7928 | {
|
7956 7929 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7957 7930 | type Future = MalformedTimestampQueryHttpDateInputFuture;
|
7958 7931 |
|
7959 7932 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7960 7933 | let fut = async move {
|
7961 7934 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
7962 7935 | request.headers(),
|
7963 7936 | &CONTENT_TYPE_MALFORMEDTIMESTAMPQUERYHTTPDATE,
|
7964 7937 | ) {
|
7965 7938 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7966 7939 | }
|
7967 7940 | crate::protocol_serde::shape_malformed_timestamp_query_http_date::de_malformed_timestamp_query_http_date_http_request(request)
|
7968 7941 | .await
|
7969 - | .map_err(Into::into)
|
7970 7942 | };
|
7971 7943 | use ::futures_util::future::TryFutureExt;
|
7972 7944 | let fut = fut.map_err(
|
7973 7945 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7974 7946 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7975 7947 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
7976 7948 | e,
|
7977 7949 | )
|
7978 7950 | },
|
7979 7951 | );
|
7980 7952 | MalformedTimestampQueryHttpDateInputFuture {
|
7981 7953 | inner: Box::pin(fut),
|
7982 7954 | }
|
7983 7955 | }
|
7984 7956 | }
|
7985 7957 | impl
|
7986 7958 | ::aws_smithy_http_server::response::IntoResponse<
|
7987 7959 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
7988 7960 | > for crate::output::MalformedTimestampQueryHttpDateOutput
|
7989 7961 | {
|
7990 7962 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
7991 7963 | match crate::protocol_serde::shape_malformed_timestamp_query_http_date::ser_malformed_timestamp_query_http_date_http_response(self) {
|
7992 7964 | Ok(response) => response,
|
7993 7965 | Err(e) => {
|
7994 7966 | ::tracing::error!(error = %e, "failed to serialize response");
|
7995 7967 | ::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))
|
7996 7968 | }
|
7997 7969 | }
|
7998 7970 | }
|
7999 7971 | }
|
@@ -8267,8239 +8327,8298 @@
8267 8239 | this.inner.as_mut().poll(cx)
|
8268 8240 | }
|
8269 8241 | }
|
8270 8242 |
|
8271 8243 | impl<B>
|
8272 8244 | ::aws_smithy_http_server::request::FromRequest<
|
8273 8245 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
8274 8246 | B,
|
8275 8247 | > for crate::input::MalformedTimestampQueryDefaultInput
|
8276 8248 | where
|
8277 8249 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
8278 8250 | B: 'static,
|
8279 8251 |
|
8280 8252 | B::Data: Send,
|
8281 8253 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8282 8254 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
8283 8255 | {
|
8284 8256 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8285 8257 | type Future = MalformedTimestampQueryDefaultInputFuture;
|
8286 8258 |
|
8287 8259 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8288 8260 | let fut = async move {
|
8289 8261 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
8290 8262 | request.headers(),
|
8291 8263 | &CONTENT_TYPE_MALFORMEDTIMESTAMPQUERYDEFAULT,
|
8292 8264 | ) {
|
8293 8265 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8294 8266 | }
|
8295 8267 | crate::protocol_serde::shape_malformed_timestamp_query_default::de_malformed_timestamp_query_default_http_request(request)
|
8296 8268 | .await
|
8297 - | .map_err(Into::into)
|
8298 8269 | };
|
8299 8270 | use ::futures_util::future::TryFutureExt;
|
8300 8271 | let fut = fut.map_err(
|
8301 8272 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8302 8273 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8303 8274 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
8304 8275 | e,
|
8305 8276 | )
|
8306 8277 | },
|
8307 8278 | );
|
8308 8279 | MalformedTimestampQueryDefaultInputFuture {
|
8309 8280 | inner: Box::pin(fut),
|
8310 8281 | }
|
8311 8282 | }
|
8312 8283 | }
|
8313 8284 | impl
|
8314 8285 | ::aws_smithy_http_server::response::IntoResponse<
|
8315 8286 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
8316 8287 | > for crate::output::MalformedTimestampQueryDefaultOutput
|
8317 8288 | {
|
8318 8289 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
8319 8290 | match crate::protocol_serde::shape_malformed_timestamp_query_default::ser_malformed_timestamp_query_default_http_response(self) {
|
8320 8291 | Ok(response) => response,
|
8321 8292 | Err(e) => {
|
8322 8293 | ::tracing::error!(error = %e, "failed to serialize response");
|
8323 8294 | ::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))
|
8324 8295 | }
|
8325 8296 | }
|
8326 8297 | }
|
8327 8298 | }
|
@@ -9269,9240 +9329,9299 @@
9269 9240 | this.inner.as_mut().poll(cx)
|
9270 9241 | }
|
9271 9242 | }
|
9272 9243 |
|
9273 9244 | impl<B>
|
9274 9245 | ::aws_smithy_http_server::request::FromRequest<
|
9275 9246 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
9276 9247 | B,
|
9277 9248 | > for crate::input::MalformedTimestampPathEpochInput
|
9278 9249 | where
|
9279 9250 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
9280 9251 | B: 'static,
|
9281 9252 |
|
9282 9253 | B::Data: Send,
|
9283 9254 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9284 9255 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
9285 9256 | {
|
9286 9257 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9287 9258 | type Future = MalformedTimestampPathEpochInputFuture;
|
9288 9259 |
|
9289 9260 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9290 9261 | let fut = async move {
|
9291 9262 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
9292 9263 | request.headers(),
|
9293 9264 | &CONTENT_TYPE_MALFORMEDTIMESTAMPPATHEPOCH,
|
9294 9265 | ) {
|
9295 9266 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9296 9267 | }
|
9297 9268 | crate::protocol_serde::shape_malformed_timestamp_path_epoch::de_malformed_timestamp_path_epoch_http_request(request)
|
9298 9269 | .await
|
9299 - | .map_err(Into::into)
|
9300 9270 | };
|
9301 9271 | use ::futures_util::future::TryFutureExt;
|
9302 9272 | let fut = fut.map_err(
|
9303 9273 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9304 9274 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9305 9275 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
9306 9276 | e,
|
9307 9277 | )
|
9308 9278 | },
|
9309 9279 | );
|
9310 9280 | MalformedTimestampPathEpochInputFuture {
|
9311 9281 | inner: Box::pin(fut),
|
9312 9282 | }
|
9313 9283 | }
|
9314 9284 | }
|
9315 9285 | impl
|
9316 9286 | ::aws_smithy_http_server::response::IntoResponse<
|
9317 9287 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
9318 9288 | > for crate::output::MalformedTimestampPathEpochOutput
|
9319 9289 | {
|
9320 9290 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
9321 9291 | match crate::protocol_serde::shape_malformed_timestamp_path_epoch::ser_malformed_timestamp_path_epoch_http_response(self) {
|
9322 9292 | Ok(response) => response,
|
9323 9293 | Err(e) => {
|
9324 9294 | ::tracing::error!(error = %e, "failed to serialize response");
|
9325 9295 | ::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))
|
9326 9296 | }
|
9327 9297 | }
|
9328 9298 | }
|
9329 9299 | }
|
@@ -9858,9828 +9918,9887 @@
9858 9828 | this.inner.as_mut().poll(cx)
|
9859 9829 | }
|
9860 9830 | }
|
9861 9831 |
|
9862 9832 | impl<B>
|
9863 9833 | ::aws_smithy_http_server::request::FromRequest<
|
9864 9834 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
9865 9835 | B,
|
9866 9836 | > for crate::input::MalformedTimestampPathHttpDateInput
|
9867 9837 | where
|
9868 9838 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
9869 9839 | B: 'static,
|
9870 9840 |
|
9871 9841 | B::Data: Send,
|
9872 9842 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9873 9843 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
9874 9844 | {
|
9875 9845 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9876 9846 | type Future = MalformedTimestampPathHttpDateInputFuture;
|
9877 9847 |
|
9878 9848 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9879 9849 | let fut = async move {
|
9880 9850 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
9881 9851 | request.headers(),
|
9882 9852 | &CONTENT_TYPE_MALFORMEDTIMESTAMPPATHHTTPDATE,
|
9883 9853 | ) {
|
9884 9854 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9885 9855 | }
|
9886 9856 | crate::protocol_serde::shape_malformed_timestamp_path_http_date::de_malformed_timestamp_path_http_date_http_request(request)
|
9887 9857 | .await
|
9888 - | .map_err(Into::into)
|
9889 9858 | };
|
9890 9859 | use ::futures_util::future::TryFutureExt;
|
9891 9860 | let fut = fut.map_err(
|
9892 9861 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9893 9862 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9894 9863 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
9895 9864 | e,
|
9896 9865 | )
|
9897 9866 | },
|
9898 9867 | );
|
9899 9868 | MalformedTimestampPathHttpDateInputFuture {
|
9900 9869 | inner: Box::pin(fut),
|
9901 9870 | }
|
9902 9871 | }
|
9903 9872 | }
|
9904 9873 | impl
|
9905 9874 | ::aws_smithy_http_server::response::IntoResponse<
|
9906 9875 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
9907 9876 | > for crate::output::MalformedTimestampPathHttpDateOutput
|
9908 9877 | {
|
9909 9878 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
9910 9879 | match crate::protocol_serde::shape_malformed_timestamp_path_http_date::ser_malformed_timestamp_path_http_date_http_response(self) {
|
9911 9880 | Ok(response) => response,
|
9912 9881 | Err(e) => {
|
9913 9882 | ::tracing::error!(error = %e, "failed to serialize response");
|
9914 9883 | ::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))
|
9915 9884 | }
|
9916 9885 | }
|
9917 9886 | }
|
9918 9887 | }
|
@@ -10168,10137 +10228,10196 @@
10168 10137 | this.inner.as_mut().poll(cx)
|
10169 10138 | }
|
10170 10139 | }
|
10171 10140 |
|
10172 10141 | impl<B>
|
10173 10142 | ::aws_smithy_http_server::request::FromRequest<
|
10174 10143 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
10175 10144 | B,
|
10176 10145 | > for crate::input::MalformedTimestampPathDefaultInput
|
10177 10146 | where
|
10178 10147 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
10179 10148 | B: 'static,
|
10180 10149 |
|
10181 10150 | B::Data: Send,
|
10182 10151 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
10183 10152 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
10184 10153 | {
|
10185 10154 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
10186 10155 | type Future = MalformedTimestampPathDefaultInputFuture;
|
10187 10156 |
|
10188 10157 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
10189 10158 | let fut = async move {
|
10190 10159 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
10191 10160 | request.headers(),
|
10192 10161 | &CONTENT_TYPE_MALFORMEDTIMESTAMPPATHDEFAULT,
|
10193 10162 | ) {
|
10194 10163 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
10195 10164 | }
|
10196 10165 | crate::protocol_serde::shape_malformed_timestamp_path_default::de_malformed_timestamp_path_default_http_request(request)
|
10197 10166 | .await
|
10198 - | .map_err(Into::into)
|
10199 10167 | };
|
10200 10168 | use ::futures_util::future::TryFutureExt;
|
10201 10169 | let fut = fut.map_err(
|
10202 10170 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
10203 10171 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
10204 10172 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
10205 10173 | e,
|
10206 10174 | )
|
10207 10175 | },
|
10208 10176 | );
|
10209 10177 | MalformedTimestampPathDefaultInputFuture {
|
10210 10178 | inner: Box::pin(fut),
|
10211 10179 | }
|
10212 10180 | }
|
10213 10181 | }
|
10214 10182 | impl
|
10215 10183 | ::aws_smithy_http_server::response::IntoResponse<
|
10216 10184 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
10217 10185 | > for crate::output::MalformedTimestampPathDefaultOutput
|
10218 10186 | {
|
10219 10187 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
10220 10188 | match crate::protocol_serde::shape_malformed_timestamp_path_default::ser_malformed_timestamp_path_default_http_response(self) {
|
10221 10189 | Ok(response) => response,
|
10222 10190 | Err(e) => {
|
10223 10191 | ::tracing::error!(error = %e, "failed to serialize response");
|
10224 10192 | ::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))
|
10225 10193 | }
|
10226 10194 | }
|
10227 10195 | }
|
10228 10196 | }
|
@@ -11106,11074 +11166,11133 @@
11106 11074 | this.inner.as_mut().poll(cx)
|
11107 11075 | }
|
11108 11076 | }
|
11109 11077 |
|
11110 11078 | impl<B>
|
11111 11079 | ::aws_smithy_http_server::request::FromRequest<
|
11112 11080 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
11113 11081 | B,
|
11114 11082 | > for crate::input::MalformedStringInput
|
11115 11083 | where
|
11116 11084 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
11117 11085 | B: 'static,
|
11118 11086 |
|
11119 11087 | B::Data: Send,
|
11120 11088 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
11121 11089 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
11122 11090 | {
|
11123 11091 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
11124 11092 | type Future = MalformedStringInputFuture;
|
11125 11093 |
|
11126 11094 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
11127 11095 | let fut = async move {
|
11128 11096 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
11129 11097 | request.headers(),
|
11130 11098 | &CONTENT_TYPE_MALFORMEDSTRING,
|
11131 11099 | ) {
|
11132 11100 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
11133 11101 | }
|
11134 11102 | crate::protocol_serde::shape_malformed_string::de_malformed_string_http_request(request)
|
11135 11103 | .await
|
11136 - | .map_err(Into::into)
|
11137 11104 | };
|
11138 11105 | use ::futures_util::future::TryFutureExt;
|
11139 11106 | let fut = fut.map_err(
|
11140 11107 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
11141 11108 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
11142 11109 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
11143 11110 | e,
|
11144 11111 | )
|
11145 11112 | },
|
11146 11113 | );
|
11147 11114 | MalformedStringInputFuture {
|
11148 11115 | inner: Box::pin(fut),
|
11149 11116 | }
|
11150 11117 | }
|
11151 11118 | }
|
11152 11119 | impl
|
11153 11120 | ::aws_smithy_http_server::response::IntoResponse<
|
11154 11121 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
11155 11122 | > for crate::output::MalformedStringOutput
|
11156 11123 | {
|
11157 11124 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
11158 11125 | match crate::protocol_serde::shape_malformed_string::ser_malformed_string_http_response(
|
11159 11126 | self,
|
11160 11127 | ) {
|
11161 11128 | Ok(response) => response,
|
11162 11129 | Err(e) => {
|
11163 11130 | ::tracing::error!(error = %e, "failed to serialize response");
|
11164 11131 | ::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))
|
11165 11132 | }
|
11166 11133 | }
|
@@ -11371,11338 +11431,11397 @@
11371 11338 | this.inner.as_mut().poll(cx)
|
11372 11339 | }
|
11373 11340 | }
|
11374 11341 |
|
11375 11342 | impl<B>
|
11376 11343 | ::aws_smithy_http_server::request::FromRequest<
|
11377 11344 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
11378 11345 | B,
|
11379 11346 | > for crate::input::MalformedDoubleInput
|
11380 11347 | where
|
11381 11348 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
11382 11349 | B: 'static,
|
11383 11350 |
|
11384 11351 | B::Data: Send,
|
11385 11352 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
11386 11353 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
11387 11354 | {
|
11388 11355 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
11389 11356 | type Future = MalformedDoubleInputFuture;
|
11390 11357 |
|
11391 11358 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
11392 11359 | let fut = async move {
|
11393 11360 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
11394 11361 | request.headers(),
|
11395 11362 | &CONTENT_TYPE_MALFORMEDDOUBLE,
|
11396 11363 | ) {
|
11397 11364 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
11398 11365 | }
|
11399 11366 | crate::protocol_serde::shape_malformed_double::de_malformed_double_http_request(request)
|
11400 11367 | .await
|
11401 - | .map_err(Into::into)
|
11402 11368 | };
|
11403 11369 | use ::futures_util::future::TryFutureExt;
|
11404 11370 | let fut = fut.map_err(
|
11405 11371 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
11406 11372 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
11407 11373 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
11408 11374 | e,
|
11409 11375 | )
|
11410 11376 | },
|
11411 11377 | );
|
11412 11378 | MalformedDoubleInputFuture {
|
11413 11379 | inner: Box::pin(fut),
|
11414 11380 | }
|
11415 11381 | }
|
11416 11382 | }
|
11417 11383 | impl
|
11418 11384 | ::aws_smithy_http_server::response::IntoResponse<
|
11419 11385 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
11420 11386 | > for crate::output::MalformedDoubleOutput
|
11421 11387 | {
|
11422 11388 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
11423 11389 | match crate::protocol_serde::shape_malformed_double::ser_malformed_double_http_response(
|
11424 11390 | self,
|
11425 11391 | ) {
|
11426 11392 | Ok(response) => response,
|
11427 11393 | Err(e) => {
|
11428 11394 | ::tracing::error!(error = %e, "failed to serialize response");
|
11429 11395 | ::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))
|
11430 11396 | }
|
11431 11397 | }
|
@@ -12169,12135 +12229,12194 @@
12169 12135 | this.inner.as_mut().poll(cx)
|
12170 12136 | }
|
12171 12137 | }
|
12172 12138 |
|
12173 12139 | impl<B>
|
12174 12140 | ::aws_smithy_http_server::request::FromRequest<
|
12175 12141 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
12176 12142 | B,
|
12177 12143 | > for crate::input::MalformedFloatInput
|
12178 12144 | where
|
12179 12145 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
12180 12146 | B: 'static,
|
12181 12147 |
|
12182 12148 | B::Data: Send,
|
12183 12149 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
12184 12150 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
12185 12151 | {
|
12186 12152 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
12187 12153 | type Future = MalformedFloatInputFuture;
|
12188 12154 |
|
12189 12155 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
12190 12156 | let fut = async move {
|
12191 12157 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
12192 12158 | request.headers(),
|
12193 12159 | &CONTENT_TYPE_MALFORMEDFLOAT,
|
12194 12160 | ) {
|
12195 12161 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
12196 12162 | }
|
12197 12163 | crate::protocol_serde::shape_malformed_float::de_malformed_float_http_request(request)
|
12198 12164 | .await
|
12199 - | .map_err(Into::into)
|
12200 12165 | };
|
12201 12166 | use ::futures_util::future::TryFutureExt;
|
12202 12167 | let fut = fut.map_err(
|
12203 12168 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
12204 12169 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
12205 12170 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
12206 12171 | e,
|
12207 12172 | )
|
12208 12173 | },
|
12209 12174 | );
|
12210 12175 | MalformedFloatInputFuture {
|
12211 12176 | inner: Box::pin(fut),
|
12212 12177 | }
|
12213 12178 | }
|
12214 12179 | }
|
12215 12180 | impl
|
12216 12181 | ::aws_smithy_http_server::response::IntoResponse<
|
12217 12182 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
12218 12183 | > for crate::output::MalformedFloatOutput
|
12219 12184 | {
|
12220 12185 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
12221 12186 | match crate::protocol_serde::shape_malformed_float::ser_malformed_float_http_response(self)
|
12222 12187 | {
|
12223 12188 | Ok(response) => response,
|
12224 12189 | Err(e) => {
|
12225 12190 | ::tracing::error!(error = %e, "failed to serialize response");
|
12226 12191 | ::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))
|
12227 12192 | }
|
12228 12193 | }
|
12229 12194 | }
|
@@ -12965,12930 +13025,12989 @@
12965 12930 | this.inner.as_mut().poll(cx)
|
12966 12931 | }
|
12967 12932 | }
|
12968 12933 |
|
12969 12934 | impl<B>
|
12970 12935 | ::aws_smithy_http_server::request::FromRequest<
|
12971 12936 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
12972 12937 | B,
|
12973 12938 | > for crate::input::MalformedLongInput
|
12974 12939 | where
|
12975 12940 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
12976 12941 | B: 'static,
|
12977 12942 |
|
12978 12943 | B::Data: Send,
|
12979 12944 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
12980 12945 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
12981 12946 | {
|
12982 12947 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
12983 12948 | type Future = MalformedLongInputFuture;
|
12984 12949 |
|
12985 12950 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
12986 12951 | let fut = async move {
|
12987 12952 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
12988 12953 | request.headers(),
|
12989 12954 | &CONTENT_TYPE_MALFORMEDLONG,
|
12990 12955 | ) {
|
12991 12956 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
12992 12957 | }
|
12993 12958 | crate::protocol_serde::shape_malformed_long::de_malformed_long_http_request(request)
|
12994 12959 | .await
|
12995 - | .map_err(Into::into)
|
12996 12960 | };
|
12997 12961 | use ::futures_util::future::TryFutureExt;
|
12998 12962 | let fut = fut.map_err(
|
12999 12963 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
13000 12964 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
13001 12965 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
13002 12966 | e,
|
13003 12967 | )
|
13004 12968 | },
|
13005 12969 | );
|
13006 12970 | MalformedLongInputFuture {
|
13007 12971 | inner: Box::pin(fut),
|
13008 12972 | }
|
13009 12973 | }
|
13010 12974 | }
|
13011 12975 | impl
|
13012 12976 | ::aws_smithy_http_server::response::IntoResponse<
|
13013 12977 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
13014 12978 | > for crate::output::MalformedLongOutput
|
13015 12979 | {
|
13016 12980 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
13017 12981 | match crate::protocol_serde::shape_malformed_long::ser_malformed_long_http_response(self) {
|
13018 12982 | Ok(response) => response,
|
13019 12983 | Err(e) => {
|
13020 12984 | ::tracing::error!(error = %e, "failed to serialize response");
|
13021 12985 | ::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))
|
13022 12986 | }
|
13023 12987 | }
|
13024 12988 | }
|
13025 12989 | }
|
@@ -14942,14906 +15002,14965 @@
14942 14906 | this.inner.as_mut().poll(cx)
|
14943 14907 | }
|
14944 14908 | }
|
14945 14909 |
|
14946 14910 | impl<B>
|
14947 14911 | ::aws_smithy_http_server::request::FromRequest<
|
14948 14912 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
14949 14913 | B,
|
14950 14914 | > for crate::input::MalformedShortInput
|
14951 14915 | where
|
14952 14916 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
14953 14917 | B: 'static,
|
14954 14918 |
|
14955 14919 | B::Data: Send,
|
14956 14920 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
14957 14921 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
14958 14922 | {
|
14959 14923 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
14960 14924 | type Future = MalformedShortInputFuture;
|
14961 14925 |
|
14962 14926 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
14963 14927 | let fut = async move {
|
14964 14928 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
14965 14929 | request.headers(),
|
14966 14930 | &CONTENT_TYPE_MALFORMEDSHORT,
|
14967 14931 | ) {
|
14968 14932 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
14969 14933 | }
|
14970 14934 | crate::protocol_serde::shape_malformed_short::de_malformed_short_http_request(request)
|
14971 14935 | .await
|
14972 - | .map_err(Into::into)
|
14973 14936 | };
|
14974 14937 | use ::futures_util::future::TryFutureExt;
|
14975 14938 | let fut = fut.map_err(
|
14976 14939 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
14977 14940 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
14978 14941 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
14979 14942 | e,
|
14980 14943 | )
|
14981 14944 | },
|
14982 14945 | );
|
14983 14946 | MalformedShortInputFuture {
|
14984 14947 | inner: Box::pin(fut),
|
14985 14948 | }
|
14986 14949 | }
|
14987 14950 | }
|
14988 14951 | impl
|
14989 14952 | ::aws_smithy_http_server::response::IntoResponse<
|
14990 14953 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
14991 14954 | > for crate::output::MalformedShortOutput
|
14992 14955 | {
|
14993 14956 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
14994 14957 | match crate::protocol_serde::shape_malformed_short::ser_malformed_short_http_response(self)
|
14995 14958 | {
|
14996 14959 | Ok(response) => response,
|
14997 14960 | Err(e) => {
|
14998 14961 | ::tracing::error!(error = %e, "failed to serialize response");
|
14999 14962 | ::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))
|
15000 14963 | }
|
15001 14964 | }
|
15002 14965 | }
|
@@ -17256,17219 +17316,17278 @@
17256 17219 | this.inner.as_mut().poll(cx)
|
17257 17220 | }
|
17258 17221 | }
|
17259 17222 |
|
17260 17223 | impl<B>
|
17261 17224 | ::aws_smithy_http_server::request::FromRequest<
|
17262 17225 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
17263 17226 | B,
|
17264 17227 | > for crate::input::MalformedByteInput
|
17265 17228 | where
|
17266 17229 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
17267 17230 | B: 'static,
|
17268 17231 |
|
17269 17232 | B::Data: Send,
|
17270 17233 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
17271 17234 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
17272 17235 | {
|
17273 17236 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
17274 17237 | type Future = MalformedByteInputFuture;
|
17275 17238 |
|
17276 17239 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
17277 17240 | let fut = async move {
|
17278 17241 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
17279 17242 | request.headers(),
|
17280 17243 | &CONTENT_TYPE_MALFORMEDBYTE,
|
17281 17244 | ) {
|
17282 17245 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
17283 17246 | }
|
17284 17247 | crate::protocol_serde::shape_malformed_byte::de_malformed_byte_http_request(request)
|
17285 17248 | .await
|
17286 - | .map_err(Into::into)
|
17287 17249 | };
|
17288 17250 | use ::futures_util::future::TryFutureExt;
|
17289 17251 | let fut = fut.map_err(
|
17290 17252 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
17291 17253 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
17292 17254 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
17293 17255 | e,
|
17294 17256 | )
|
17295 17257 | },
|
17296 17258 | );
|
17297 17259 | MalformedByteInputFuture {
|
17298 17260 | inner: Box::pin(fut),
|
17299 17261 | }
|
17300 17262 | }
|
17301 17263 | }
|
17302 17264 | impl
|
17303 17265 | ::aws_smithy_http_server::response::IntoResponse<
|
17304 17266 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
17305 17267 | > for crate::output::MalformedByteOutput
|
17306 17268 | {
|
17307 17269 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
17308 17270 | match crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_http_response(self) {
|
17309 17271 | Ok(response) => response,
|
17310 17272 | Err(e) => {
|
17311 17273 | ::tracing::error!(error = %e, "failed to serialize response");
|
17312 17274 | ::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))
|
17313 17275 | }
|
17314 17276 | }
|
17315 17277 | }
|
17316 17278 | }
|
@@ -19569,19531 +19629,19590 @@
19569 19531 | this.inner.as_mut().poll(cx)
|
19570 19532 | }
|
19571 19533 | }
|
19572 19534 |
|
19573 19535 | impl<B>
|
19574 19536 | ::aws_smithy_http_server::request::FromRequest<
|
19575 19537 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
19576 19538 | B,
|
19577 19539 | > for crate::input::MalformedBlobInput
|
19578 19540 | where
|
19579 19541 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
19580 19542 | B: 'static,
|
19581 19543 |
|
19582 19544 | B::Data: Send,
|
19583 19545 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
19584 19546 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
19585 19547 | {
|
19586 19548 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
19587 19549 | type Future = MalformedBlobInputFuture;
|
19588 19550 |
|
19589 19551 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
19590 19552 | let fut = async move {
|
19591 19553 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
19592 19554 | request.headers(),
|
19593 19555 | &CONTENT_TYPE_MALFORMEDBLOB,
|
19594 19556 | ) {
|
19595 19557 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
19596 19558 | }
|
19597 19559 | crate::protocol_serde::shape_malformed_blob::de_malformed_blob_http_request(request)
|
19598 19560 | .await
|
19599 - | .map_err(Into::into)
|
19600 19561 | };
|
19601 19562 | use ::futures_util::future::TryFutureExt;
|
19602 19563 | let fut = fut.map_err(
|
19603 19564 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
19604 19565 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
19605 19566 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
19606 19567 | e,
|
19607 19568 | )
|
19608 19569 | },
|
19609 19570 | );
|
19610 19571 | MalformedBlobInputFuture {
|
19611 19572 | inner: Box::pin(fut),
|
19612 19573 | }
|
19613 19574 | }
|
19614 19575 | }
|
19615 19576 | impl
|
19616 19577 | ::aws_smithy_http_server::response::IntoResponse<
|
19617 19578 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
19618 19579 | > for crate::output::MalformedBlobOutput
|
19619 19580 | {
|
19620 19581 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
19621 19582 | match crate::protocol_serde::shape_malformed_blob::ser_malformed_blob_http_response(self) {
|
19622 19583 | Ok(response) => response,
|
19623 19584 | Err(e) => {
|
19624 19585 | ::tracing::error!(error = %e, "failed to serialize response");
|
19625 19586 | ::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))
|
19626 19587 | }
|
19627 19588 | }
|
19628 19589 | }
|
19629 19590 | }
|
@@ -20077,20038 +20139,20098 @@
20077 20038 | ) -> std::task::Poll<Self::Output> {
|
20078 20039 | let this = self.project();
|
20079 20040 | this.inner.as_mut().poll(cx)
|
20080 20041 | }
|
20081 20042 | }
|
20082 20043 |
|
20083 20044 | impl<B>
|
20084 20045 | ::aws_smithy_http_server::request::FromRequest<
|
20085 20046 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
20086 20047 | B,
|
20087 20048 | > for crate::input::MalformedMapInput
|
20088 20049 | where
|
20089 20050 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
20090 20051 | B: 'static,
|
20091 20052 |
|
20092 20053 | B::Data: Send,
|
20093 20054 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
20094 20055 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
20095 20056 | {
|
20096 20057 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
20097 20058 | type Future = MalformedMapInputFuture;
|
20098 20059 |
|
20099 20060 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
20100 20061 | let fut = async move {
|
20101 20062 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
20102 20063 | request.headers(),
|
20103 20064 | &CONTENT_TYPE_MALFORMEDMAP,
|
20104 20065 | ) {
|
20105 20066 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
20106 20067 | }
|
20107 - | crate::protocol_serde::shape_malformed_map::de_malformed_map_http_request(request)
|
20108 - | .await
|
20109 - | .map_err(Into::into)
|
20068 + | crate::protocol_serde::shape_malformed_map::de_malformed_map_http_request(request).await
|
20110 20069 | };
|
20111 20070 | use ::futures_util::future::TryFutureExt;
|
20112 20071 | let fut = fut.map_err(
|
20113 20072 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
20114 20073 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
20115 20074 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
20116 20075 | e,
|
20117 20076 | )
|
20118 20077 | },
|
20119 20078 | );
|
20120 20079 | MalformedMapInputFuture {
|
20121 20080 | inner: Box::pin(fut),
|
20122 20081 | }
|
20123 20082 | }
|
20124 20083 | }
|
20125 20084 | impl
|
20126 20085 | ::aws_smithy_http_server::response::IntoResponse<
|
20127 20086 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
20128 20087 | > for crate::output::MalformedMapOutput
|
20129 20088 | {
|
20130 20089 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
20131 20090 | match crate::protocol_serde::shape_malformed_map::ser_malformed_map_http_response(self) {
|
20132 20091 | Ok(response) => response,
|
20133 20092 | Err(e) => {
|
20134 20093 | ::tracing::error!(error = %e, "failed to serialize response");
|
20135 20094 | ::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))
|
20136 20095 | }
|
20137 20096 | }
|
20138 20097 | }
|
20139 20098 | }
|
@@ -20260,20219 +20320,20278 @@
20260 20219 | this.inner.as_mut().poll(cx)
|
20261 20220 | }
|
20262 20221 | }
|
20263 20222 |
|
20264 20223 | impl<B>
|
20265 20224 | ::aws_smithy_http_server::request::FromRequest<
|
20266 20225 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
20267 20226 | B,
|
20268 20227 | > for crate::input::MalformedListInput
|
20269 20228 | where
|
20270 20229 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
20271 20230 | B: 'static,
|
20272 20231 |
|
20273 20232 | B::Data: Send,
|
20274 20233 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
20275 20234 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
20276 20235 | {
|
20277 20236 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
20278 20237 | type Future = MalformedListInputFuture;
|
20279 20238 |
|
20280 20239 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
20281 20240 | let fut = async move {
|
20282 20241 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
20283 20242 | request.headers(),
|
20284 20243 | &CONTENT_TYPE_MALFORMEDLIST,
|
20285 20244 | ) {
|
20286 20245 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
20287 20246 | }
|
20288 20247 | crate::protocol_serde::shape_malformed_list::de_malformed_list_http_request(request)
|
20289 20248 | .await
|
20290 - | .map_err(Into::into)
|
20291 20249 | };
|
20292 20250 | use ::futures_util::future::TryFutureExt;
|
20293 20251 | let fut = fut.map_err(
|
20294 20252 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
20295 20253 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
20296 20254 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
20297 20255 | e,
|
20298 20256 | )
|
20299 20257 | },
|
20300 20258 | );
|
20301 20259 | MalformedListInputFuture {
|
20302 20260 | inner: Box::pin(fut),
|
20303 20261 | }
|
20304 20262 | }
|
20305 20263 | }
|
20306 20264 | impl
|
20307 20265 | ::aws_smithy_http_server::response::IntoResponse<
|
20308 20266 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
20309 20267 | > for crate::output::MalformedListOutput
|
20310 20268 | {
|
20311 20269 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
20312 20270 | match crate::protocol_serde::shape_malformed_list::ser_malformed_list_http_response(self) {
|
20313 20271 | Ok(response) => response,
|
20314 20272 | Err(e) => {
|
20315 20273 | ::tracing::error!(error = %e, "failed to serialize response");
|
20316 20274 | ::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))
|
20317 20275 | }
|
20318 20276 | }
|
20319 20277 | }
|
20320 20278 | }
|
@@ -20443,20401 +20503,20460 @@
20443 20401 | }
|
20444 20402 |
|
20445 20403 | impl<B>
|
20446 20404 | ::aws_smithy_http_server::request::FromRequest<
|
20447 20405 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
20448 20406 | B,
|
20449 20407 | > for crate::input::MalformedBooleanInput
|
20450 20408 | where
|
20451 20409 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
20452 20410 | B: 'static,
|
20453 20411 |
|
20454 20412 | B::Data: Send,
|
20455 20413 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
20456 20414 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
20457 20415 | {
|
20458 20416 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
20459 20417 | type Future = MalformedBooleanInputFuture;
|
20460 20418 |
|
20461 20419 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
20462 20420 | let fut = async move {
|
20463 20421 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
20464 20422 | request.headers(),
|
20465 20423 | &CONTENT_TYPE_MALFORMEDBOOLEAN,
|
20466 20424 | ) {
|
20467 20425 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
20468 20426 | }
|
20469 20427 | crate::protocol_serde::shape_malformed_boolean::de_malformed_boolean_http_request(
|
20470 20428 | request,
|
20471 20429 | )
|
20472 20430 | .await
|
20473 - | .map_err(Into::into)
|
20474 20431 | };
|
20475 20432 | use ::futures_util::future::TryFutureExt;
|
20476 20433 | let fut = fut.map_err(
|
20477 20434 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
20478 20435 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
20479 20436 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
20480 20437 | e,
|
20481 20438 | )
|
20482 20439 | },
|
20483 20440 | );
|
20484 20441 | MalformedBooleanInputFuture {
|
20485 20442 | inner: Box::pin(fut),
|
20486 20443 | }
|
20487 20444 | }
|
20488 20445 | }
|
20489 20446 | impl
|
20490 20447 | ::aws_smithy_http_server::response::IntoResponse<
|
20491 20448 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
20492 20449 | > for crate::output::MalformedBooleanOutput
|
20493 20450 | {
|
20494 20451 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
20495 20452 | match crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_http_response(
|
20496 20453 | self,
|
20497 20454 | ) {
|
20498 20455 | Ok(response) => response,
|
20499 20456 | Err(e) => {
|
20500 20457 | ::tracing::error!(error = %e, "failed to serialize response");
|
20501 20458 | ::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))
|
20502 20459 | }
|
20503 20460 | }
|
@@ -25362,25319 +25422,25378 @@
25362 25319 | this.inner.as_mut().poll(cx)
|
25363 25320 | }
|
25364 25321 | }
|
25365 25322 |
|
25366 25323 | impl<B>
|
25367 25324 | ::aws_smithy_http_server::request::FromRequest<
|
25368 25325 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
25369 25326 | B,
|
25370 25327 | > for crate::input::MalformedUnionInput
|
25371 25328 | where
|
25372 25329 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
25373 25330 | B: 'static,
|
25374 25331 |
|
25375 25332 | B::Data: Send,
|
25376 25333 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
25377 25334 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
25378 25335 | {
|
25379 25336 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
25380 25337 | type Future = MalformedUnionInputFuture;
|
25381 25338 |
|
25382 25339 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
25383 25340 | let fut = async move {
|
25384 25341 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
25385 25342 | request.headers(),
|
25386 25343 | &CONTENT_TYPE_MALFORMEDUNION,
|
25387 25344 | ) {
|
25388 25345 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
25389 25346 | }
|
25390 25347 | crate::protocol_serde::shape_malformed_union::de_malformed_union_http_request(request)
|
25391 25348 | .await
|
25392 - | .map_err(Into::into)
|
25393 25349 | };
|
25394 25350 | use ::futures_util::future::TryFutureExt;
|
25395 25351 | let fut = fut.map_err(
|
25396 25352 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
25397 25353 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
25398 25354 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
25399 25355 | e,
|
25400 25356 | )
|
25401 25357 | },
|
25402 25358 | );
|
25403 25359 | MalformedUnionInputFuture {
|
25404 25360 | inner: Box::pin(fut),
|
25405 25361 | }
|
25406 25362 | }
|
25407 25363 | }
|
25408 25364 | impl
|
25409 25365 | ::aws_smithy_http_server::response::IntoResponse<
|
25410 25366 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
25411 25367 | > for crate::output::MalformedUnionOutput
|
25412 25368 | {
|
25413 25369 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
25414 25370 | match crate::protocol_serde::shape_malformed_union::ser_malformed_union_http_response(self)
|
25415 25371 | {
|
25416 25372 | Ok(response) => response,
|
25417 25373 | Err(e) => {
|
25418 25374 | ::tracing::error!(error = %e, "failed to serialize response");
|
25419 25375 | ::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))
|
25420 25376 | }
|
25421 25377 | }
|
25422 25378 | }
|
@@ -25734,25690 +25794,25749 @@
25734 25690 | }
|
25735 25691 |
|
25736 25692 | impl<B>
|
25737 25693 | ::aws_smithy_http_server::request::FromRequest<
|
25738 25694 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
25739 25695 | B,
|
25740 25696 | > for crate::input::MalformedIntegerInput
|
25741 25697 | where
|
25742 25698 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
25743 25699 | B: 'static,
|
25744 25700 |
|
25745 25701 | B::Data: Send,
|
25746 25702 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
25747 25703 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
25748 25704 | {
|
25749 25705 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
25750 25706 | type Future = MalformedIntegerInputFuture;
|
25751 25707 |
|
25752 25708 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
25753 25709 | let fut = async move {
|
25754 25710 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
25755 25711 | request.headers(),
|
25756 25712 | &CONTENT_TYPE_MALFORMEDINTEGER,
|
25757 25713 | ) {
|
25758 25714 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
25759 25715 | }
|
25760 25716 | crate::protocol_serde::shape_malformed_integer::de_malformed_integer_http_request(
|
25761 25717 | request,
|
25762 25718 | )
|
25763 25719 | .await
|
25764 - | .map_err(Into::into)
|
25765 25720 | };
|
25766 25721 | use ::futures_util::future::TryFutureExt;
|
25767 25722 | let fut = fut.map_err(
|
25768 25723 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
25769 25724 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
25770 25725 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
25771 25726 | e,
|
25772 25727 | )
|
25773 25728 | },
|
25774 25729 | );
|
25775 25730 | MalformedIntegerInputFuture {
|
25776 25731 | inner: Box::pin(fut),
|
25777 25732 | }
|
25778 25733 | }
|
25779 25734 | }
|
25780 25735 | impl
|
25781 25736 | ::aws_smithy_http_server::response::IntoResponse<
|
25782 25737 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
25783 25738 | > for crate::output::MalformedIntegerOutput
|
25784 25739 | {
|
25785 25740 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
25786 25741 | match crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_http_response(
|
25787 25742 | self,
|
25788 25743 | ) {
|
25789 25744 | Ok(response) => response,
|
25790 25745 | Err(e) => {
|
25791 25746 | ::tracing::error!(error = %e, "failed to serialize response");
|
25792 25747 | ::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))
|
25793 25748 | }
|
25794 25749 | }
|
@@ -27719,27674 +27779,27733 @@
27719 27674 | this.inner.as_mut().poll(cx)
|
27720 27675 | }
|
27721 27676 | }
|
27722 27677 |
|
27723 27678 | impl<B>
|
27724 27679 | ::aws_smithy_http_server::request::FromRequest<
|
27725 27680 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
27726 27681 | B,
|
27727 27682 | > for crate::input::MalformedRequestBodyInput
|
27728 27683 | where
|
27729 27684 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
27730 27685 | B: 'static,
|
27731 27686 |
|
27732 27687 | B::Data: Send,
|
27733 27688 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
27734 27689 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
27735 27690 | {
|
27736 27691 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
27737 27692 | type Future = MalformedRequestBodyInputFuture;
|
27738 27693 |
|
27739 27694 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
27740 27695 | let fut = async move {
|
27741 27696 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
27742 27697 | request.headers(),
|
27743 27698 | &CONTENT_TYPE_MALFORMEDREQUESTBODY,
|
27744 27699 | ) {
|
27745 27700 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
27746 27701 | }
|
27747 27702 | crate::protocol_serde::shape_malformed_request_body::de_malformed_request_body_http_request(request)
|
27748 27703 | .await
|
27749 - | .map_err(Into::into)
|
27750 27704 | };
|
27751 27705 | use ::futures_util::future::TryFutureExt;
|
27752 27706 | let fut = fut.map_err(
|
27753 27707 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
27754 27708 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
27755 27709 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
27756 27710 | e,
|
27757 27711 | )
|
27758 27712 | },
|
27759 27713 | );
|
27760 27714 | MalformedRequestBodyInputFuture {
|
27761 27715 | inner: Box::pin(fut),
|
27762 27716 | }
|
27763 27717 | }
|
27764 27718 | }
|
27765 27719 | impl
|
27766 27720 | ::aws_smithy_http_server::response::IntoResponse<
|
27767 27721 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
27768 27722 | > for crate::output::MalformedRequestBodyOutput
|
27769 27723 | {
|
27770 27724 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
27771 27725 | match crate::protocol_serde::shape_malformed_request_body::ser_malformed_request_body_http_response(self) {
|
27772 27726 | Ok(response) => response,
|
27773 27727 | Err(e) => {
|
27774 27728 | ::tracing::error!(error = %e, "failed to serialize response");
|
27775 27729 | ::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))
|
27776 27730 | }
|
27777 27731 | }
|
27778 27732 | }
|
27779 27733 | }
|
@@ -28323,28277 +28383,28336 @@
28323 28277 | this.inner.as_mut().poll(cx)
|
28324 28278 | }
|
28325 28279 | }
|
28326 28280 |
|
28327 28281 | impl<B>
|
28328 28282 | ::aws_smithy_http_server::request::FromRequest<
|
28329 28283 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28330 28284 | B,
|
28331 28285 | > for crate::input::HttpChecksumRequiredInput
|
28332 28286 | where
|
28333 28287 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
28334 28288 | B: 'static,
|
28335 28289 |
|
28336 28290 | B::Data: Send,
|
28337 28291 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
28338 28292 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
28339 28293 | {
|
28340 28294 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
28341 28295 | type Future = HttpChecksumRequiredInputFuture;
|
28342 28296 |
|
28343 28297 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
28344 28298 | let fut = async move {
|
28345 28299 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
28346 28300 | request.headers(),
|
28347 28301 | &CONTENT_TYPE_HTTPCHECKSUMREQUIRED,
|
28348 28302 | ) {
|
28349 28303 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
28350 28304 | }
|
28351 28305 | crate::protocol_serde::shape_http_checksum_required::de_http_checksum_required_http_request(request)
|
28352 28306 | .await
|
28353 - | .map_err(Into::into)
|
28354 28307 | };
|
28355 28308 | use ::futures_util::future::TryFutureExt;
|
28356 28309 | let fut = fut.map_err(
|
28357 28310 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
28358 28311 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
28359 28312 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
28360 28313 | e,
|
28361 28314 | )
|
28362 28315 | },
|
28363 28316 | );
|
28364 28317 | HttpChecksumRequiredInputFuture {
|
28365 28318 | inner: Box::pin(fut),
|
28366 28319 | }
|
28367 28320 | }
|
28368 28321 | }
|
28369 28322 | impl
|
28370 28323 | ::aws_smithy_http_server::response::IntoResponse<
|
28371 28324 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28372 28325 | > for crate::output::HttpChecksumRequiredOutput
|
28373 28326 | {
|
28374 28327 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
28375 28328 | match crate::protocol_serde::shape_http_checksum_required::ser_http_checksum_required_http_response(self) {
|
28376 28329 | Ok(response) => response,
|
28377 28330 | Err(e) => {
|
28378 28331 | ::tracing::error!(error = %e, "failed to serialize response");
|
28379 28332 | ::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))
|
28380 28333 | }
|
28381 28334 | }
|
28382 28335 | }
|
28383 28336 | }
|
@@ -28461,28414 +28521,28473 @@
28461 28414 | this.inner.as_mut().poll(cx)
|
28462 28415 | }
|
28463 28416 | }
|
28464 28417 |
|
28465 28418 | impl<B>
|
28466 28419 | ::aws_smithy_http_server::request::FromRequest<
|
28467 28420 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28468 28421 | B,
|
28469 28422 | > for crate::input::HostWithPathOperationInput
|
28470 28423 | where
|
28471 28424 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
28472 28425 | B: 'static,
|
28473 28426 |
|
28474 28427 | B::Data: Send,
|
28475 28428 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
28476 28429 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
28477 28430 | {
|
28478 28431 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
28479 28432 | type Future = HostWithPathOperationInputFuture;
|
28480 28433 |
|
28481 28434 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
28482 28435 | let fut = async move {
|
28483 28436 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
28484 28437 | request.headers(),
|
28485 28438 | &CONTENT_TYPE_HOSTWITHPATHOPERATION,
|
28486 28439 | ) {
|
28487 28440 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
28488 28441 | }
|
28489 28442 | crate::protocol_serde::shape_host_with_path_operation::de_host_with_path_operation_http_request(request)
|
28490 28443 | .await
|
28491 - | .map_err(Into::into)
|
28492 28444 | };
|
28493 28445 | use ::futures_util::future::TryFutureExt;
|
28494 28446 | let fut = fut.map_err(
|
28495 28447 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
28496 28448 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
28497 28449 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
28498 28450 | e,
|
28499 28451 | )
|
28500 28452 | },
|
28501 28453 | );
|
28502 28454 | HostWithPathOperationInputFuture {
|
28503 28455 | inner: Box::pin(fut),
|
28504 28456 | }
|
28505 28457 | }
|
28506 28458 | }
|
28507 28459 | impl
|
28508 28460 | ::aws_smithy_http_server::response::IntoResponse<
|
28509 28461 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28510 28462 | > for crate::output::HostWithPathOperationOutput
|
28511 28463 | {
|
28512 28464 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
28513 28465 | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_response(self) {
|
28514 28466 | Ok(response) => response,
|
28515 28467 | Err(e) => {
|
28516 28468 | ::tracing::error!(error = %e, "failed to serialize response");
|
28517 28469 | ::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))
|
28518 28470 | }
|
28519 28471 | }
|
28520 28472 | }
|
28521 28473 | }
|
@@ -28543,28495 +28603,28554 @@
28543 28495 | this.inner.as_mut().poll(cx)
|
28544 28496 | }
|
28545 28497 | }
|
28546 28498 |
|
28547 28499 | impl<B>
|
28548 28500 | ::aws_smithy_http_server::request::FromRequest<
|
28549 28501 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28550 28502 | B,
|
28551 28503 | > for crate::input::EndpointWithHostLabelOperationInput
|
28552 28504 | where
|
28553 28505 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
28554 28506 | B: 'static,
|
28555 28507 |
|
28556 28508 | B::Data: Send,
|
28557 28509 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
28558 28510 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
28559 28511 | {
|
28560 28512 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
28561 28513 | type Future = EndpointWithHostLabelOperationInputFuture;
|
28562 28514 |
|
28563 28515 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
28564 28516 | let fut = async move {
|
28565 28517 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
28566 28518 | request.headers(),
|
28567 28519 | &CONTENT_TYPE_ENDPOINTWITHHOSTLABELOPERATION,
|
28568 28520 | ) {
|
28569 28521 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
28570 28522 | }
|
28571 28523 | crate::protocol_serde::shape_endpoint_with_host_label_operation::de_endpoint_with_host_label_operation_http_request(request)
|
28572 28524 | .await
|
28573 - | .map_err(Into::into)
|
28574 28525 | };
|
28575 28526 | use ::futures_util::future::TryFutureExt;
|
28576 28527 | let fut = fut.map_err(
|
28577 28528 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
28578 28529 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
28579 28530 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
28580 28531 | e,
|
28581 28532 | )
|
28582 28533 | },
|
28583 28534 | );
|
28584 28535 | EndpointWithHostLabelOperationInputFuture {
|
28585 28536 | inner: Box::pin(fut),
|
28586 28537 | }
|
28587 28538 | }
|
28588 28539 | }
|
28589 28540 | impl
|
28590 28541 | ::aws_smithy_http_server::response::IntoResponse<
|
28591 28542 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28592 28543 | > for crate::output::EndpointWithHostLabelOperationOutput
|
28593 28544 | {
|
28594 28545 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
28595 28546 | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_response(self) {
|
28596 28547 | Ok(response) => response,
|
28597 28548 | Err(e) => {
|
28598 28549 | ::tracing::error!(error = %e, "failed to serialize response");
|
28599 28550 | ::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))
|
28600 28551 | }
|
28601 28552 | }
|
28602 28553 | }
|
28603 28554 | }
|
@@ -28701,28652 +28761,28711 @@
28701 28652 | }
|
28702 28653 |
|
28703 28654 | impl<B>
|
28704 28655 | ::aws_smithy_http_server::request::FromRequest<
|
28705 28656 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28706 28657 | B,
|
28707 28658 | > for crate::input::EndpointOperationInput
|
28708 28659 | where
|
28709 28660 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
28710 28661 | B: 'static,
|
28711 28662 |
|
28712 28663 | B::Data: Send,
|
28713 28664 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
28714 28665 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
28715 28666 | {
|
28716 28667 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
28717 28668 | type Future = EndpointOperationInputFuture;
|
28718 28669 |
|
28719 28670 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
28720 28671 | let fut = async move {
|
28721 28672 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
28722 28673 | request.headers(),
|
28723 28674 | &CONTENT_TYPE_ENDPOINTOPERATION,
|
28724 28675 | ) {
|
28725 28676 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
28726 28677 | }
|
28727 28678 | crate::protocol_serde::shape_endpoint_operation::de_endpoint_operation_http_request(
|
28728 28679 | request,
|
28729 28680 | )
|
28730 28681 | .await
|
28731 - | .map_err(Into::into)
|
28732 28682 | };
|
28733 28683 | use ::futures_util::future::TryFutureExt;
|
28734 28684 | let fut = fut.map_err(
|
28735 28685 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
28736 28686 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
28737 28687 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
28738 28688 | e,
|
28739 28689 | )
|
28740 28690 | },
|
28741 28691 | );
|
28742 28692 | EndpointOperationInputFuture {
|
28743 28693 | inner: Box::pin(fut),
|
28744 28694 | }
|
28745 28695 | }
|
28746 28696 | }
|
28747 28697 | impl
|
28748 28698 | ::aws_smithy_http_server::response::IntoResponse<
|
28749 28699 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28750 28700 | > for crate::output::EndpointOperationOutput
|
28751 28701 | {
|
28752 28702 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
28753 28703 | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_response(
|
28754 28704 | self,
|
28755 28705 | ) {
|
28756 28706 | Ok(response) => response,
|
28757 28707 | Err(e) => {
|
28758 28708 | ::tracing::error!(error = %e, "failed to serialize response");
|
28759 28709 | ::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))
|
28760 28710 | }
|
28761 28711 | }
|
@@ -28836,28786 +28896,28845 @@
28836 28786 | this.inner.as_mut().poll(cx)
|
28837 28787 | }
|
28838 28788 | }
|
28839 28789 |
|
28840 28790 | impl<B>
|
28841 28791 | ::aws_smithy_http_server::request::FromRequest<
|
28842 28792 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28843 28793 | B,
|
28844 28794 | > for crate::input::PostUnionWithJsonNameInput
|
28845 28795 | where
|
28846 28796 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
28847 28797 | B: 'static,
|
28848 28798 |
|
28849 28799 | B::Data: Send,
|
28850 28800 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
28851 28801 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
28852 28802 | {
|
28853 28803 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
28854 28804 | type Future = PostUnionWithJsonNameInputFuture;
|
28855 28805 |
|
28856 28806 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
28857 28807 | let fut = async move {
|
28858 28808 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
28859 28809 | request.headers(),
|
28860 28810 | &CONTENT_TYPE_POSTUNIONWITHJSONNAME,
|
28861 28811 | ) {
|
28862 28812 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
28863 28813 | }
|
28864 28814 | crate::protocol_serde::shape_post_union_with_json_name::de_post_union_with_json_name_http_request(request)
|
28865 28815 | .await
|
28866 - | .map_err(Into::into)
|
28867 28816 | };
|
28868 28817 | use ::futures_util::future::TryFutureExt;
|
28869 28818 | let fut = fut.map_err(
|
28870 28819 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
28871 28820 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
28872 28821 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
28873 28822 | e,
|
28874 28823 | )
|
28875 28824 | },
|
28876 28825 | );
|
28877 28826 | PostUnionWithJsonNameInputFuture {
|
28878 28827 | inner: Box::pin(fut),
|
28879 28828 | }
|
28880 28829 | }
|
28881 28830 | }
|
28882 28831 | impl
|
28883 28832 | ::aws_smithy_http_server::response::IntoResponse<
|
28884 28833 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
28885 28834 | > for crate::output::PostUnionWithJsonNameOutput
|
28886 28835 | {
|
28887 28836 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
28888 28837 | match crate::protocol_serde::shape_post_union_with_json_name::ser_post_union_with_json_name_http_response(self) {
|
28889 28838 | Ok(response) => response,
|
28890 28839 | Err(e) => {
|
28891 28840 | ::tracing::error!(error = %e, "failed to serialize response");
|
28892 28841 | ::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))
|
28893 28842 | }
|
28894 28843 | }
|
28895 28844 | }
|
28896 28845 | }
|
@@ -29162,29111 +29222,29170 @@
29162 29111 | }
|
29163 29112 |
|
29164 29113 | impl<B>
|
29165 29114 | ::aws_smithy_http_server::request::FromRequest<
|
29166 29115 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29167 29116 | B,
|
29168 29117 | > for crate::input::PostPlayerActionInput
|
29169 29118 | where
|
29170 29119 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
29171 29120 | B: 'static,
|
29172 29121 |
|
29173 29122 | B::Data: Send,
|
29174 29123 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
29175 29124 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
29176 29125 | {
|
29177 29126 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
29178 29127 | type Future = PostPlayerActionInputFuture;
|
29179 29128 |
|
29180 29129 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
29181 29130 | let fut = async move {
|
29182 29131 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
29183 29132 | request.headers(),
|
29184 29133 | &CONTENT_TYPE_POSTPLAYERACTION,
|
29185 29134 | ) {
|
29186 29135 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
29187 29136 | }
|
29188 29137 | crate::protocol_serde::shape_post_player_action::de_post_player_action_http_request(
|
29189 29138 | request,
|
29190 29139 | )
|
29191 29140 | .await
|
29192 - | .map_err(Into::into)
|
29193 29141 | };
|
29194 29142 | use ::futures_util::future::TryFutureExt;
|
29195 29143 | let fut = fut.map_err(
|
29196 29144 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
29197 29145 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
29198 29146 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
29199 29147 | e,
|
29200 29148 | )
|
29201 29149 | },
|
29202 29150 | );
|
29203 29151 | PostPlayerActionInputFuture {
|
29204 29152 | inner: Box::pin(fut),
|
29205 29153 | }
|
29206 29154 | }
|
29207 29155 | }
|
29208 29156 | impl
|
29209 29157 | ::aws_smithy_http_server::response::IntoResponse<
|
29210 29158 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29211 29159 | > for crate::output::PostPlayerActionOutput
|
29212 29160 | {
|
29213 29161 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
29214 29162 | match crate::protocol_serde::shape_post_player_action::ser_post_player_action_http_response(
|
29215 29163 | self,
|
29216 29164 | ) {
|
29217 29165 | Ok(response) => response,
|
29218 29166 | Err(e) => {
|
29219 29167 | ::tracing::error!(error = %e, "failed to serialize response");
|
29220 29168 | ::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))
|
29221 29169 | }
|
29222 29170 | }
|
@@ -29326,29274 +29388,29334 @@
29326 29274 | ) -> std::task::Poll<Self::Output> {
|
29327 29275 | let this = self.project();
|
29328 29276 | this.inner.as_mut().poll(cx)
|
29329 29277 | }
|
29330 29278 | }
|
29331 29279 |
|
29332 29280 | impl<B>
|
29333 29281 | ::aws_smithy_http_server::request::FromRequest<
|
29334 29282 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29335 29283 | B,
|
29336 29284 | > for crate::input::JsonUnionsInput
|
29337 29285 | where
|
29338 29286 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
29339 29287 | B: 'static,
|
29340 29288 |
|
29341 29289 | B::Data: Send,
|
29342 29290 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
29343 29291 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
29344 29292 | {
|
29345 29293 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
29346 29294 | type Future = JsonUnionsInputFuture;
|
29347 29295 |
|
29348 29296 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
29349 29297 | let fut = async move {
|
29350 29298 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
29351 29299 | request.headers(),
|
29352 29300 | &CONTENT_TYPE_JSONUNIONS,
|
29353 29301 | ) {
|
29354 29302 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
29355 29303 | }
|
29356 - | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request)
|
29357 - | .await
|
29358 - | .map_err(Into::into)
|
29304 + | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request).await
|
29359 29305 | };
|
29360 29306 | use ::futures_util::future::TryFutureExt;
|
29361 29307 | let fut = fut.map_err(
|
29362 29308 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
29363 29309 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
29364 29310 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
29365 29311 | e,
|
29366 29312 | )
|
29367 29313 | },
|
29368 29314 | );
|
29369 29315 | JsonUnionsInputFuture {
|
29370 29316 | inner: Box::pin(fut),
|
29371 29317 | }
|
29372 29318 | }
|
29373 29319 | }
|
29374 29320 | impl
|
29375 29321 | ::aws_smithy_http_server::response::IntoResponse<
|
29376 29322 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29377 29323 | > for crate::output::JsonUnionsOutput
|
29378 29324 | {
|
29379 29325 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
29380 29326 | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_response(self) {
|
29381 29327 | Ok(response) => response,
|
29382 29328 | Err(e) => {
|
29383 29329 | ::tracing::error!(error = %e, "failed to serialize response");
|
29384 29330 | ::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))
|
29385 29331 | }
|
29386 29332 | }
|
29387 29333 | }
|
29388 29334 | }
|
@@ -30238,30184 +30298,30243 @@
30238 30184 | this.inner.as_mut().poll(cx)
|
30239 30185 | }
|
30240 30186 | }
|
30241 30187 |
|
30242 30188 | impl<B>
|
30243 30189 | ::aws_smithy_http_server::request::FromRequest<
|
30244 30190 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30245 30191 | B,
|
30246 30192 | > for crate::input::DocumentTypeAsMapValueInput
|
30247 30193 | where
|
30248 30194 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
30249 30195 | B: 'static,
|
30250 30196 |
|
30251 30197 | B::Data: Send,
|
30252 30198 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
30253 30199 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
30254 30200 | {
|
30255 30201 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
30256 30202 | type Future = DocumentTypeAsMapValueInputFuture;
|
30257 30203 |
|
30258 30204 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
30259 30205 | let fut = async move {
|
30260 30206 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
30261 30207 | request.headers(),
|
30262 30208 | &CONTENT_TYPE_DOCUMENTTYPEASMAPVALUE,
|
30263 30209 | ) {
|
30264 30210 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
30265 30211 | }
|
30266 30212 | crate::protocol_serde::shape_document_type_as_map_value::de_document_type_as_map_value_http_request(request)
|
30267 30213 | .await
|
30268 - | .map_err(Into::into)
|
30269 30214 | };
|
30270 30215 | use ::futures_util::future::TryFutureExt;
|
30271 30216 | let fut = fut.map_err(
|
30272 30217 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
30273 30218 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
30274 30219 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
30275 30220 | e,
|
30276 30221 | )
|
30277 30222 | },
|
30278 30223 | );
|
30279 30224 | DocumentTypeAsMapValueInputFuture {
|
30280 30225 | inner: Box::pin(fut),
|
30281 30226 | }
|
30282 30227 | }
|
30283 30228 | }
|
30284 30229 | impl
|
30285 30230 | ::aws_smithy_http_server::response::IntoResponse<
|
30286 30231 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30287 30232 | > for crate::output::DocumentTypeAsMapValueOutput
|
30288 30233 | {
|
30289 30234 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
30290 30235 | match crate::protocol_serde::shape_document_type_as_map_value::ser_document_type_as_map_value_http_response(self) {
|
30291 30236 | Ok(response) => response,
|
30292 30237 | Err(e) => {
|
30293 30238 | ::tracing::error!(error = %e, "failed to serialize response");
|
30294 30239 | ::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))
|
30295 30240 | }
|
30296 30241 | }
|
30297 30242 | }
|
30298 30243 | }
|
@@ -30469,30414 +30529,30473 @@
30469 30414 | this.inner.as_mut().poll(cx)
|
30470 30415 | }
|
30471 30416 | }
|
30472 30417 |
|
30473 30418 | impl<B>
|
30474 30419 | ::aws_smithy_http_server::request::FromRequest<
|
30475 30420 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30476 30421 | B,
|
30477 30422 | > for crate::input::DocumentTypeAsPayloadInput
|
30478 30423 | where
|
30479 30424 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
30480 30425 | B: 'static,
|
30481 30426 |
|
30482 30427 | B::Data: Send,
|
30483 30428 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
30484 30429 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
30485 30430 | {
|
30486 30431 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
30487 30432 | type Future = DocumentTypeAsPayloadInputFuture;
|
30488 30433 |
|
30489 30434 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
30490 30435 | let fut = async move {
|
30491 30436 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
30492 30437 | request.headers(),
|
30493 30438 | &CONTENT_TYPE_DOCUMENTTYPEASPAYLOAD,
|
30494 30439 | ) {
|
30495 30440 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
30496 30441 | }
|
30497 30442 | crate::protocol_serde::shape_document_type_as_payload::de_document_type_as_payload_http_request(request)
|
30498 30443 | .await
|
30499 - | .map_err(Into::into)
|
30500 30444 | };
|
30501 30445 | use ::futures_util::future::TryFutureExt;
|
30502 30446 | let fut = fut.map_err(
|
30503 30447 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
30504 30448 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
30505 30449 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
30506 30450 | e,
|
30507 30451 | )
|
30508 30452 | },
|
30509 30453 | );
|
30510 30454 | DocumentTypeAsPayloadInputFuture {
|
30511 30455 | inner: Box::pin(fut),
|
30512 30456 | }
|
30513 30457 | }
|
30514 30458 | }
|
30515 30459 | impl
|
30516 30460 | ::aws_smithy_http_server::response::IntoResponse<
|
30517 30461 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30518 30462 | > for crate::output::DocumentTypeAsPayloadOutput
|
30519 30463 | {
|
30520 30464 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
30521 30465 | match crate::protocol_serde::shape_document_type_as_payload::ser_document_type_as_payload_http_response(self) {
|
30522 30466 | Ok(response) => response,
|
30523 30467 | Err(e) => {
|
30524 30468 | ::tracing::error!(error = %e, "failed to serialize response");
|
30525 30469 | ::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))
|
30526 30470 | }
|
30527 30471 | }
|
30528 30472 | }
|
30529 30473 | }
|
@@ -30752,30696 +30814,30756 @@
30752 30696 | ) -> std::task::Poll<Self::Output> {
|
30753 30697 | let this = self.project();
|
30754 30698 | this.inner.as_mut().poll(cx)
|
30755 30699 | }
|
30756 30700 | }
|
30757 30701 |
|
30758 30702 | impl<B>
|
30759 30703 | ::aws_smithy_http_server::request::FromRequest<
|
30760 30704 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30761 30705 | B,
|
30762 30706 | > for crate::input::DocumentTypeInput
|
30763 30707 | where
|
30764 30708 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
30765 30709 | B: 'static,
|
30766 30710 |
|
30767 30711 | B::Data: Send,
|
30768 30712 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
30769 30713 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
30770 30714 | {
|
30771 30715 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
30772 30716 | type Future = DocumentTypeInputFuture;
|
30773 30717 |
|
30774 30718 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
30775 30719 | let fut = async move {
|
30776 30720 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
30777 30721 | request.headers(),
|
30778 30722 | &CONTENT_TYPE_DOCUMENTTYPE,
|
30779 30723 | ) {
|
30780 30724 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
30781 30725 | }
|
30782 - | crate::protocol_serde::shape_document_type::de_document_type_http_request(request)
|
30783 - | .await
|
30784 - | .map_err(Into::into)
|
30726 + | crate::protocol_serde::shape_document_type::de_document_type_http_request(request).await
|
30785 30727 | };
|
30786 30728 | use ::futures_util::future::TryFutureExt;
|
30787 30729 | let fut = fut.map_err(
|
30788 30730 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
30789 30731 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
30790 30732 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
30791 30733 | e,
|
30792 30734 | )
|
30793 30735 | },
|
30794 30736 | );
|
30795 30737 | DocumentTypeInputFuture {
|
30796 30738 | inner: Box::pin(fut),
|
30797 30739 | }
|
30798 30740 | }
|
30799 30741 | }
|
30800 30742 | impl
|
30801 30743 | ::aws_smithy_http_server::response::IntoResponse<
|
30802 30744 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30803 30745 | > for crate::output::DocumentTypeOutput
|
30804 30746 | {
|
30805 30747 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
30806 30748 | match crate::protocol_serde::shape_document_type::ser_document_type_http_response(self) {
|
30807 30749 | Ok(response) => response,
|
30808 30750 | Err(e) => {
|
30809 30751 | ::tracing::error!(error = %e, "failed to serialize response");
|
30810 30752 | ::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))
|
30811 30753 | }
|
30812 30754 | }
|
30813 30755 | }
|
30814 30756 | }
|
@@ -31355,31297 +31417,31357 @@
31355 31297 | ) -> std::task::Poll<Self::Output> {
|
31356 31298 | let this = self.project();
|
31357 31299 | this.inner.as_mut().poll(cx)
|
31358 31300 | }
|
31359 31301 | }
|
31360 31302 |
|
31361 31303 | impl<B>
|
31362 31304 | ::aws_smithy_http_server::request::FromRequest<
|
31363 31305 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
31364 31306 | B,
|
31365 31307 | > for crate::input::JsonBlobsInput
|
31366 31308 | where
|
31367 31309 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
31368 31310 | B: 'static,
|
31369 31311 |
|
31370 31312 | B::Data: Send,
|
31371 31313 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
31372 31314 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
31373 31315 | {
|
31374 31316 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
31375 31317 | type Future = JsonBlobsInputFuture;
|
31376 31318 |
|
31377 31319 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
31378 31320 | let fut = async move {
|
31379 31321 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
31380 31322 | request.headers(),
|
31381 31323 | &CONTENT_TYPE_JSONBLOBS,
|
31382 31324 | ) {
|
31383 31325 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
31384 31326 | }
|
31385 - | crate::protocol_serde::shape_json_blobs::de_json_blobs_http_request(request)
|
31386 - | .await
|
31387 - | .map_err(Into::into)
|
31327 + | crate::protocol_serde::shape_json_blobs::de_json_blobs_http_request(request).await
|
31388 31328 | };
|
31389 31329 | use ::futures_util::future::TryFutureExt;
|
31390 31330 | let fut = fut.map_err(
|
31391 31331 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
31392 31332 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
31393 31333 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
31394 31334 | e,
|
31395 31335 | )
|
31396 31336 | },
|
31397 31337 | );
|
31398 31338 | JsonBlobsInputFuture {
|
31399 31339 | inner: Box::pin(fut),
|
31400 31340 | }
|
31401 31341 | }
|
31402 31342 | }
|
31403 31343 | impl
|
31404 31344 | ::aws_smithy_http_server::response::IntoResponse<
|
31405 31345 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
31406 31346 | > for crate::output::JsonBlobsOutput
|
31407 31347 | {
|
31408 31348 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
31409 31349 | match crate::protocol_serde::shape_json_blobs::ser_json_blobs_http_response(self) {
|
31410 31350 | Ok(response) => response,
|
31411 31351 | Err(e) => {
|
31412 31352 | ::tracing::error!(error = %e, "failed to serialize response");
|
31413 31353 | ::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))
|
31414 31354 | }
|
31415 31355 | }
|
31416 31356 | }
|
31417 31357 | }
|
@@ -31523,31463 +31583,31522 @@
31523 31463 | this.inner.as_mut().poll(cx)
|
31524 31464 | }
|
31525 31465 | }
|
31526 31466 |
|
31527 31467 | impl<B>
|
31528 31468 | ::aws_smithy_http_server::request::FromRequest<
|
31529 31469 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
31530 31470 | B,
|
31531 31471 | > for crate::input::SparseJsonMapsInput
|
31532 31472 | where
|
31533 31473 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
31534 31474 | B: 'static,
|
31535 31475 |
|
31536 31476 | B::Data: Send,
|
31537 31477 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
31538 31478 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
31539 31479 | {
|
31540 31480 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
31541 31481 | type Future = SparseJsonMapsInputFuture;
|
31542 31482 |
|
31543 31483 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
31544 31484 | let fut = async move {
|
31545 31485 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
31546 31486 | request.headers(),
|
31547 31487 | &CONTENT_TYPE_SPARSEJSONMAPS,
|
31548 31488 | ) {
|
31549 31489 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
31550 31490 | }
|
31551 31491 | crate::protocol_serde::shape_sparse_json_maps::de_sparse_json_maps_http_request(request)
|
31552 31492 | .await
|
31553 - | .map_err(Into::into)
|
31554 31493 | };
|
31555 31494 | use ::futures_util::future::TryFutureExt;
|
31556 31495 | let fut = fut.map_err(
|
31557 31496 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
31558 31497 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
31559 31498 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
31560 31499 | e,
|
31561 31500 | )
|
31562 31501 | },
|
31563 31502 | );
|
31564 31503 | SparseJsonMapsInputFuture {
|
31565 31504 | inner: Box::pin(fut),
|
31566 31505 | }
|
31567 31506 | }
|
31568 31507 | }
|
31569 31508 | impl
|
31570 31509 | ::aws_smithy_http_server::response::IntoResponse<
|
31571 31510 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
31572 31511 | > for crate::output::SparseJsonMapsOutput
|
31573 31512 | {
|
31574 31513 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
31575 31514 | match crate::protocol_serde::shape_sparse_json_maps::ser_sparse_json_maps_http_response(
|
31576 31515 | self,
|
31577 31516 | ) {
|
31578 31517 | Ok(response) => response,
|
31579 31518 | Err(e) => {
|
31580 31519 | ::tracing::error!(error = %e, "failed to serialize response");
|
31581 31520 | ::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))
|
31582 31521 | }
|
31583 31522 | }
|
@@ -32204,32143 +32266,32203 @@
32204 32143 | ) -> std::task::Poll<Self::Output> {
|
32205 32144 | let this = self.project();
|
32206 32145 | this.inner.as_mut().poll(cx)
|
32207 32146 | }
|
32208 32147 | }
|
32209 32148 |
|
32210 32149 | impl<B>
|
32211 32150 | ::aws_smithy_http_server::request::FromRequest<
|
32212 32151 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
32213 32152 | B,
|
32214 32153 | > for crate::input::JsonMapsInput
|
32215 32154 | where
|
32216 32155 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
32217 32156 | B: 'static,
|
32218 32157 |
|
32219 32158 | B::Data: Send,
|
32220 32159 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
32221 32160 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
32222 32161 | {
|
32223 32162 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
32224 32163 | type Future = JsonMapsInputFuture;
|
32225 32164 |
|
32226 32165 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
32227 32166 | let fut = async move {
|
32228 32167 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
32229 32168 | request.headers(),
|
32230 32169 | &CONTENT_TYPE_JSONMAPS,
|
32231 32170 | ) {
|
32232 32171 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
32233 32172 | }
|
32234 - | crate::protocol_serde::shape_json_maps::de_json_maps_http_request(request)
|
32235 - | .await
|
32236 - | .map_err(Into::into)
|
32173 + | crate::protocol_serde::shape_json_maps::de_json_maps_http_request(request).await
|
32237 32174 | };
|
32238 32175 | use ::futures_util::future::TryFutureExt;
|
32239 32176 | let fut = fut.map_err(
|
32240 32177 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
32241 32178 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
32242 32179 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
32243 32180 | e,
|
32244 32181 | )
|
32245 32182 | },
|
32246 32183 | );
|
32247 32184 | JsonMapsInputFuture {
|
32248 32185 | inner: Box::pin(fut),
|
32249 32186 | }
|
32250 32187 | }
|
32251 32188 | }
|
32252 32189 | impl
|
32253 32190 | ::aws_smithy_http_server::response::IntoResponse<
|
32254 32191 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
32255 32192 | > for crate::output::JsonMapsOutput
|
32256 32193 | {
|
32257 32194 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
32258 32195 | match crate::protocol_serde::shape_json_maps::ser_json_maps_http_response(self) {
|
32259 32196 | Ok(response) => response,
|
32260 32197 | Err(e) => {
|
32261 32198 | ::tracing::error!(error = %e, "failed to serialize response");
|
32262 32199 | ::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))
|
32263 32200 | }
|
32264 32201 | }
|
32265 32202 | }
|
32266 32203 | }
|
@@ -32642,32579 +32702,32638 @@
32642 32579 | }
|
32643 32580 |
|
32644 32581 | impl<B>
|
32645 32582 | ::aws_smithy_http_server::request::FromRequest<
|
32646 32583 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
32647 32584 | B,
|
32648 32585 | > for crate::input::SparseJsonListsInput
|
32649 32586 | where
|
32650 32587 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
32651 32588 | B: 'static,
|
32652 32589 |
|
32653 32590 | B::Data: Send,
|
32654 32591 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
32655 32592 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
32656 32593 | {
|
32657 32594 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
32658 32595 | type Future = SparseJsonListsInputFuture;
|
32659 32596 |
|
32660 32597 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
32661 32598 | let fut = async move {
|
32662 32599 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
32663 32600 | request.headers(),
|
32664 32601 | &CONTENT_TYPE_SPARSEJSONLISTS,
|
32665 32602 | ) {
|
32666 32603 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
32667 32604 | }
|
32668 32605 | crate::protocol_serde::shape_sparse_json_lists::de_sparse_json_lists_http_request(
|
32669 32606 | request,
|
32670 32607 | )
|
32671 32608 | .await
|
32672 - | .map_err(Into::into)
|
32673 32609 | };
|
32674 32610 | use ::futures_util::future::TryFutureExt;
|
32675 32611 | let fut = fut.map_err(
|
32676 32612 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
32677 32613 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
32678 32614 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
32679 32615 | e,
|
32680 32616 | )
|
32681 32617 | },
|
32682 32618 | );
|
32683 32619 | SparseJsonListsInputFuture {
|
32684 32620 | inner: Box::pin(fut),
|
32685 32621 | }
|
32686 32622 | }
|
32687 32623 | }
|
32688 32624 | impl
|
32689 32625 | ::aws_smithy_http_server::response::IntoResponse<
|
32690 32626 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
32691 32627 | > for crate::output::SparseJsonListsOutput
|
32692 32628 | {
|
32693 32629 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
32694 32630 | match crate::protocol_serde::shape_sparse_json_lists::ser_sparse_json_lists_http_response(
|
32695 32631 | self,
|
32696 32632 | ) {
|
32697 32633 | Ok(response) => response,
|
32698 32634 | Err(e) => {
|
32699 32635 | ::tracing::error!(error = %e, "failed to serialize response");
|
32700 32636 | ::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))
|
32701 32637 | }
|
32702 32638 | }
|
@@ -32817,32753 +32879,32813 @@
32817 32753 | ) -> std::task::Poll<Self::Output> {
|
32818 32754 | let this = self.project();
|
32819 32755 | this.inner.as_mut().poll(cx)
|
32820 32756 | }
|
32821 32757 | }
|
32822 32758 |
|
32823 32759 | impl<B>
|
32824 32760 | ::aws_smithy_http_server::request::FromRequest<
|
32825 32761 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
32826 32762 | B,
|
32827 32763 | > for crate::input::JsonListsInput
|
32828 32764 | where
|
32829 32765 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
32830 32766 | B: 'static,
|
32831 32767 |
|
32832 32768 | B::Data: Send,
|
32833 32769 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
32834 32770 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
32835 32771 | {
|
32836 32772 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
32837 32773 | type Future = JsonListsInputFuture;
|
32838 32774 |
|
32839 32775 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
32840 32776 | let fut = async move {
|
32841 32777 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
32842 32778 | request.headers(),
|
32843 32779 | &CONTENT_TYPE_JSONLISTS,
|
32844 32780 | ) {
|
32845 32781 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
32846 32782 | }
|
32847 - | crate::protocol_serde::shape_json_lists::de_json_lists_http_request(request)
|
32848 - | .await
|
32849 - | .map_err(Into::into)
|
32783 + | crate::protocol_serde::shape_json_lists::de_json_lists_http_request(request).await
|
32850 32784 | };
|
32851 32785 | use ::futures_util::future::TryFutureExt;
|
32852 32786 | let fut = fut.map_err(
|
32853 32787 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
32854 32788 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
32855 32789 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
32856 32790 | e,
|
32857 32791 | )
|
32858 32792 | },
|
32859 32793 | );
|
32860 32794 | JsonListsInputFuture {
|
32861 32795 | inner: Box::pin(fut),
|
32862 32796 | }
|
32863 32797 | }
|
32864 32798 | }
|
32865 32799 | impl
|
32866 32800 | ::aws_smithy_http_server::response::IntoResponse<
|
32867 32801 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
32868 32802 | > for crate::output::JsonListsOutput
|
32869 32803 | {
|
32870 32804 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
32871 32805 | match crate::protocol_serde::shape_json_lists::ser_json_lists_http_response(self) {
|
32872 32806 | Ok(response) => response,
|
32873 32807 | Err(e) => {
|
32874 32808 | ::tracing::error!(error = %e, "failed to serialize response");
|
32875 32809 | ::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))
|
32876 32810 | }
|
32877 32811 | }
|
32878 32812 | }
|
32879 32813 | }
|
@@ -33181,33115 +33241,33174 @@
33181 33115 | this.inner.as_mut().poll(cx)
|
33182 33116 | }
|
33183 33117 | }
|
33184 33118 |
|
33185 33119 | impl<B>
|
33186 33120 | ::aws_smithy_http_server::request::FromRequest<
|
33187 33121 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33188 33122 | B,
|
33189 33123 | > for crate::input::RecursiveShapesInput
|
33190 33124 | where
|
33191 33125 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33192 33126 | B: 'static,
|
33193 33127 |
|
33194 33128 | B::Data: Send,
|
33195 33129 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
33196 33130 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
33197 33131 | {
|
33198 33132 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
33199 33133 | type Future = RecursiveShapesInputFuture;
|
33200 33134 |
|
33201 33135 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
33202 33136 | let fut = async move {
|
33203 33137 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
33204 33138 | request.headers(),
|
33205 33139 | &CONTENT_TYPE_RECURSIVESHAPES,
|
33206 33140 | ) {
|
33207 33141 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
33208 33142 | }
|
33209 33143 | crate::protocol_serde::shape_recursive_shapes::de_recursive_shapes_http_request(request)
|
33210 33144 | .await
|
33211 - | .map_err(Into::into)
|
33212 33145 | };
|
33213 33146 | use ::futures_util::future::TryFutureExt;
|
33214 33147 | let fut = fut.map_err(
|
33215 33148 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
33216 33149 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
33217 33150 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
33218 33151 | e,
|
33219 33152 | )
|
33220 33153 | },
|
33221 33154 | );
|
33222 33155 | RecursiveShapesInputFuture {
|
33223 33156 | inner: Box::pin(fut),
|
33224 33157 | }
|
33225 33158 | }
|
33226 33159 | }
|
33227 33160 | impl
|
33228 33161 | ::aws_smithy_http_server::response::IntoResponse<
|
33229 33162 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33230 33163 | > for crate::output::RecursiveShapesOutput
|
33231 33164 | {
|
33232 33165 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
33233 33166 | match crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_http_response(
|
33234 33167 | self,
|
33235 33168 | ) {
|
33236 33169 | Ok(response) => response,
|
33237 33170 | Err(e) => {
|
33238 33171 | ::tracing::error!(error = %e, "failed to serialize response");
|
33239 33172 | ::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))
|
33240 33173 | }
|
33241 33174 | }
|
@@ -33415,33348 +33475,33407 @@
33415 33348 | this.inner.as_mut().poll(cx)
|
33416 33349 | }
|
33417 33350 | }
|
33418 33351 |
|
33419 33352 | impl<B>
|
33420 33353 | ::aws_smithy_http_server::request::FromRequest<
|
33421 33354 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33422 33355 | B,
|
33423 33356 | > for crate::input::JsonIntEnumsInput
|
33424 33357 | where
|
33425 33358 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33426 33359 | B: 'static,
|
33427 33360 |
|
33428 33361 | B::Data: Send,
|
33429 33362 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
33430 33363 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
33431 33364 | {
|
33432 33365 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
33433 33366 | type Future = JsonIntEnumsInputFuture;
|
33434 33367 |
|
33435 33368 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
33436 33369 | let fut = async move {
|
33437 33370 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
33438 33371 | request.headers(),
|
33439 33372 | &CONTENT_TYPE_JSONINTENUMS,
|
33440 33373 | ) {
|
33441 33374 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
33442 33375 | }
|
33443 33376 | crate::protocol_serde::shape_json_int_enums::de_json_int_enums_http_request(request)
|
33444 33377 | .await
|
33445 - | .map_err(Into::into)
|
33446 33378 | };
|
33447 33379 | use ::futures_util::future::TryFutureExt;
|
33448 33380 | let fut = fut.map_err(
|
33449 33381 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
33450 33382 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
33451 33383 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
33452 33384 | e,
|
33453 33385 | )
|
33454 33386 | },
|
33455 33387 | );
|
33456 33388 | JsonIntEnumsInputFuture {
|
33457 33389 | inner: Box::pin(fut),
|
33458 33390 | }
|
33459 33391 | }
|
33460 33392 | }
|
33461 33393 | impl
|
33462 33394 | ::aws_smithy_http_server::response::IntoResponse<
|
33463 33395 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33464 33396 | > for crate::output::JsonIntEnumsOutput
|
33465 33397 | {
|
33466 33398 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
33467 33399 | match crate::protocol_serde::shape_json_int_enums::ser_json_int_enums_http_response(self) {
|
33468 33400 | Ok(response) => response,
|
33469 33401 | Err(e) => {
|
33470 33402 | ::tracing::error!(error = %e, "failed to serialize response");
|
33471 33403 | ::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))
|
33472 33404 | }
|
33473 33405 | }
|
33474 33406 | }
|
33475 33407 | }
|
@@ -33622,33554 +33684,33614 @@
33622 33554 | ) -> std::task::Poll<Self::Output> {
|
33623 33555 | let this = self.project();
|
33624 33556 | this.inner.as_mut().poll(cx)
|
33625 33557 | }
|
33626 33558 | }
|
33627 33559 |
|
33628 33560 | impl<B>
|
33629 33561 | ::aws_smithy_http_server::request::FromRequest<
|
33630 33562 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33631 33563 | B,
|
33632 33564 | > for crate::input::JsonEnumsInput
|
33633 33565 | where
|
33634 33566 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33635 33567 | B: 'static,
|
33636 33568 |
|
33637 33569 | B::Data: Send,
|
33638 33570 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
33639 33571 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
33640 33572 | {
|
33641 33573 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
33642 33574 | type Future = JsonEnumsInputFuture;
|
33643 33575 |
|
33644 33576 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
33645 33577 | let fut = async move {
|
33646 33578 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
33647 33579 | request.headers(),
|
33648 33580 | &CONTENT_TYPE_JSONENUMS,
|
33649 33581 | ) {
|
33650 33582 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
33651 33583 | }
|
33652 - | crate::protocol_serde::shape_json_enums::de_json_enums_http_request(request)
|
33653 - | .await
|
33654 - | .map_err(Into::into)
|
33584 + | crate::protocol_serde::shape_json_enums::de_json_enums_http_request(request).await
|
33655 33585 | };
|
33656 33586 | use ::futures_util::future::TryFutureExt;
|
33657 33587 | let fut = fut.map_err(
|
33658 33588 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
33659 33589 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
33660 33590 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
33661 33591 | e,
|
33662 33592 | )
|
33663 33593 | },
|
33664 33594 | );
|
33665 33595 | JsonEnumsInputFuture {
|
33666 33596 | inner: Box::pin(fut),
|
33667 33597 | }
|
33668 33598 | }
|
33669 33599 | }
|
33670 33600 | impl
|
33671 33601 | ::aws_smithy_http_server::response::IntoResponse<
|
33672 33602 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33673 33603 | > for crate::output::JsonEnumsOutput
|
33674 33604 | {
|
33675 33605 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
33676 33606 | match crate::protocol_serde::shape_json_enums::ser_json_enums_http_response(self) {
|
33677 33607 | Ok(response) => response,
|
33678 33608 | Err(e) => {
|
33679 33609 | ::tracing::error!(error = %e, "failed to serialize response");
|
33680 33610 | ::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))
|
33681 33611 | }
|
33682 33612 | }
|
33683 33613 | }
|
33684 33614 | }
|
@@ -33899,33829 +33959,33888 @@
33899 33829 | this.inner.as_mut().poll(cx)
|
33900 33830 | }
|
33901 33831 | }
|
33902 33832 |
|
33903 33833 | impl<B>
|
33904 33834 | ::aws_smithy_http_server::request::FromRequest<
|
33905 33835 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33906 33836 | B,
|
33907 33837 | > for crate::input::JsonTimestampsInput
|
33908 33838 | where
|
33909 33839 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33910 33840 | B: 'static,
|
33911 33841 |
|
33912 33842 | B::Data: Send,
|
33913 33843 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
33914 33844 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
33915 33845 | {
|
33916 33846 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
33917 33847 | type Future = JsonTimestampsInputFuture;
|
33918 33848 |
|
33919 33849 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
33920 33850 | let fut = async move {
|
33921 33851 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
33922 33852 | request.headers(),
|
33923 33853 | &CONTENT_TYPE_JSONTIMESTAMPS,
|
33924 33854 | ) {
|
33925 33855 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
33926 33856 | }
|
33927 33857 | crate::protocol_serde::shape_json_timestamps::de_json_timestamps_http_request(request)
|
33928 33858 | .await
|
33929 - | .map_err(Into::into)
|
33930 33859 | };
|
33931 33860 | use ::futures_util::future::TryFutureExt;
|
33932 33861 | let fut = fut.map_err(
|
33933 33862 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
33934 33863 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
33935 33864 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
33936 33865 | e,
|
33937 33866 | )
|
33938 33867 | },
|
33939 33868 | );
|
33940 33869 | JsonTimestampsInputFuture {
|
33941 33870 | inner: Box::pin(fut),
|
33942 33871 | }
|
33943 33872 | }
|
33944 33873 | }
|
33945 33874 | impl
|
33946 33875 | ::aws_smithy_http_server::response::IntoResponse<
|
33947 33876 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
33948 33877 | > for crate::output::JsonTimestampsOutput
|
33949 33878 | {
|
33950 33879 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
33951 33880 | match crate::protocol_serde::shape_json_timestamps::ser_json_timestamps_http_response(self)
|
33952 33881 | {
|
33953 33882 | Ok(response) => response,
|
33954 33883 | Err(e) => {
|
33955 33884 | ::tracing::error!(error = %e, "failed to serialize response");
|
33956 33885 | ::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))
|
33957 33886 | }
|
33958 33887 | }
|
33959 33888 | }
|
@@ -34694,34623 +34754,34682 @@
34694 34623 | this.inner.as_mut().poll(cx)
|
34695 34624 | }
|
34696 34625 | }
|
34697 34626 |
|
34698 34627 | impl<B>
|
34699 34628 | ::aws_smithy_http_server::request::FromRequest<
|
34700 34629 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
34701 34630 | B,
|
34702 34631 | > for crate::input::SimpleScalarPropertiesInput
|
34703 34632 | where
|
34704 34633 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
34705 34634 | B: 'static,
|
34706 34635 |
|
34707 34636 | B::Data: Send,
|
34708 34637 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
34709 34638 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
34710 34639 | {
|
34711 34640 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
34712 34641 | type Future = SimpleScalarPropertiesInputFuture;
|
34713 34642 |
|
34714 34643 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
34715 34644 | let fut = async move {
|
34716 34645 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
34717 34646 | request.headers(),
|
34718 34647 | &CONTENT_TYPE_SIMPLESCALARPROPERTIES,
|
34719 34648 | ) {
|
34720 34649 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
34721 34650 | }
|
34722 34651 | crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_request(request)
|
34723 34652 | .await
|
34724 - | .map_err(Into::into)
|
34725 34653 | };
|
34726 34654 | use ::futures_util::future::TryFutureExt;
|
34727 34655 | let fut = fut.map_err(
|
34728 34656 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
34729 34657 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
34730 34658 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
34731 34659 | e,
|
34732 34660 | )
|
34733 34661 | },
|
34734 34662 | );
|
34735 34663 | SimpleScalarPropertiesInputFuture {
|
34736 34664 | inner: Box::pin(fut),
|
34737 34665 | }
|
34738 34666 | }
|
34739 34667 | }
|
34740 34668 | impl
|
34741 34669 | ::aws_smithy_http_server::response::IntoResponse<
|
34742 34670 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
34743 34671 | > for crate::output::SimpleScalarPropertiesOutput
|
34744 34672 | {
|
34745 34673 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
34746 34674 | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_response(self) {
|
34747 34675 | Ok(response) => response,
|
34748 34676 | Err(e) => {
|
34749 34677 | ::tracing::error!(error = %e, "failed to serialize response");
|
34750 34678 | ::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))
|
34751 34679 | }
|
34752 34680 | }
|
34753 34681 | }
|
34754 34682 | }
|
@@ -35595,35523 +35655,35582 @@
35595 35523 | }
|
35596 35524 |
|
35597 35525 | impl<B>
|
35598 35526 | ::aws_smithy_http_server::request::FromRequest<
|
35599 35527 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
35600 35528 | B,
|
35601 35529 | > for crate::input::GreetingWithErrorsInput
|
35602 35530 | where
|
35603 35531 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
35604 35532 | B: 'static,
|
35605 35533 |
|
35606 35534 | B::Data: Send,
|
35607 35535 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
35608 35536 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
35609 35537 | {
|
35610 35538 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
35611 35539 | type Future = GreetingWithErrorsInputFuture;
|
35612 35540 |
|
35613 35541 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
35614 35542 | let fut = async move {
|
35615 35543 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
35616 35544 | request.headers(),
|
35617 35545 | &CONTENT_TYPE_GREETINGWITHERRORS,
|
35618 35546 | ) {
|
35619 35547 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
35620 35548 | }
|
35621 35549 | crate::protocol_serde::shape_greeting_with_errors::de_greeting_with_errors_http_request(
|
35622 35550 | request,
|
35623 35551 | )
|
35624 35552 | .await
|
35625 - | .map_err(Into::into)
|
35626 35553 | };
|
35627 35554 | use ::futures_util::future::TryFutureExt;
|
35628 35555 | let fut = fut.map_err(
|
35629 35556 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
35630 35557 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
35631 35558 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
35632 35559 | e,
|
35633 35560 | )
|
35634 35561 | },
|
35635 35562 | );
|
35636 35563 | GreetingWithErrorsInputFuture {
|
35637 35564 | inner: Box::pin(fut),
|
35638 35565 | }
|
35639 35566 | }
|
35640 35567 | }
|
35641 35568 | impl
|
35642 35569 | ::aws_smithy_http_server::response::IntoResponse<
|
35643 35570 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
35644 35571 | > for crate::output::GreetingWithErrorsOutput
|
35645 35572 | {
|
35646 35573 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
35647 35574 | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_response(self) {
|
35648 35575 | Ok(response) => response,
|
35649 35576 | Err(e) => {
|
35650 35577 | ::tracing::error!(error = %e, "failed to serialize response");
|
35651 35578 | ::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))
|
35652 35579 | }
|
35653 35580 | }
|
35654 35581 | }
|
35655 35582 | }
|
@@ -35845,35772 +35905,35831 @@
35845 35772 | }
|
35846 35773 | }
|
35847 35774 |
|
35848 35775 | impl<B>
|
35849 35776 | ::aws_smithy_http_server::request::FromRequest<
|
35850 35777 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
35851 35778 | B,
|
35852 35779 | > for crate::input::StreamingTraitsWithMediaTypeInput
|
35853 35780 | where
|
35854 35781 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
35855 35782 | B: 'static,
|
35856 35783 |
|
35857 35784 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
35858 35785 | B::Data: Send,
|
35859 35786 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
35860 35787 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
35861 35788 | {
|
35862 35789 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
35863 35790 | type Future = StreamingTraitsWithMediaTypeInputFuture;
|
35864 35791 |
|
35865 35792 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
35866 35793 | let fut = async move {
|
35867 35794 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
35868 35795 | request.headers(),
|
35869 35796 | &CONTENT_TYPE_STREAMINGTRAITSWITHMEDIATYPE,
|
35870 35797 | ) {
|
35871 35798 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
35872 35799 | }
|
35873 35800 | crate::protocol_serde::shape_streaming_traits_with_media_type::de_streaming_traits_with_media_type_http_request(request)
|
35874 35801 | .await
|
35875 - | .map_err(Into::into)
|
35876 35802 | };
|
35877 35803 | use ::futures_util::future::TryFutureExt;
|
35878 35804 | let fut = fut.map_err(
|
35879 35805 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
35880 35806 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
35881 35807 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
35882 35808 | e,
|
35883 35809 | )
|
35884 35810 | },
|
35885 35811 | );
|
35886 35812 | StreamingTraitsWithMediaTypeInputFuture {
|
35887 35813 | inner: Box::pin(fut),
|
35888 35814 | }
|
35889 35815 | }
|
35890 35816 | }
|
35891 35817 | impl
|
35892 35818 | ::aws_smithy_http_server::response::IntoResponse<
|
35893 35819 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
35894 35820 | > for crate::output::StreamingTraitsWithMediaTypeOutput
|
35895 35821 | {
|
35896 35822 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
35897 35823 | match crate::protocol_serde::shape_streaming_traits_with_media_type::ser_streaming_traits_with_media_type_http_response(self) {
|
35898 35824 | Ok(response) => response,
|
35899 35825 | Err(e) => {
|
35900 35826 | ::tracing::error!(error = %e, "failed to serialize response");
|
35901 35827 | ::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))
|
35902 35828 | }
|
35903 35829 | }
|
35904 35830 | }
|
35905 35831 | }
|
@@ -36026,35952 +36086,36011 @@
36026 35952 | }
|
36027 35953 | }
|
36028 35954 |
|
36029 35955 | impl<B>
|
36030 35956 | ::aws_smithy_http_server::request::FromRequest<
|
36031 35957 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36032 35958 | B,
|
36033 35959 | > for crate::input::StreamingTraitsRequireLengthInput
|
36034 35960 | where
|
36035 35961 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
36036 35962 | B: 'static,
|
36037 35963 |
|
36038 35964 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
36039 35965 | B::Data: Send,
|
36040 35966 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36041 35967 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
36042 35968 | {
|
36043 35969 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
36044 35970 | type Future = StreamingTraitsRequireLengthInputFuture;
|
36045 35971 |
|
36046 35972 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
36047 35973 | let fut = async move {
|
36048 35974 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
36049 35975 | request.headers(),
|
36050 35976 | &CONTENT_TYPE_STREAMINGTRAITSREQUIRELENGTH,
|
36051 35977 | ) {
|
36052 35978 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
36053 35979 | }
|
36054 35980 | crate::protocol_serde::shape_streaming_traits_require_length::de_streaming_traits_require_length_http_request(request)
|
36055 35981 | .await
|
36056 - | .map_err(Into::into)
|
36057 35982 | };
|
36058 35983 | use ::futures_util::future::TryFutureExt;
|
36059 35984 | let fut = fut.map_err(
|
36060 35985 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
36061 35986 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
36062 35987 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
36063 35988 | e,
|
36064 35989 | )
|
36065 35990 | },
|
36066 35991 | );
|
36067 35992 | StreamingTraitsRequireLengthInputFuture {
|
36068 35993 | inner: Box::pin(fut),
|
36069 35994 | }
|
36070 35995 | }
|
36071 35996 | }
|
36072 35997 | impl
|
36073 35998 | ::aws_smithy_http_server::response::IntoResponse<
|
36074 35999 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36075 36000 | > for crate::output::StreamingTraitsRequireLengthOutput
|
36076 36001 | {
|
36077 36002 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
36078 36003 | match crate::protocol_serde::shape_streaming_traits_require_length::ser_streaming_traits_require_length_http_response(self) {
|
36079 36004 | Ok(response) => response,
|
36080 36005 | Err(e) => {
|
36081 36006 | ::tracing::error!(error = %e, "failed to serialize response");
|
36082 36007 | ::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))
|
36083 36008 | }
|
36084 36009 | }
|
36085 36010 | }
|
36086 36011 | }
|
@@ -36231,36156 +36291,36215 @@
36231 36156 | }
|
36232 36157 | }
|
36233 36158 |
|
36234 36159 | impl<B>
|
36235 36160 | ::aws_smithy_http_server::request::FromRequest<
|
36236 36161 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36237 36162 | B,
|
36238 36163 | > for crate::input::StreamingTraitsInput
|
36239 36164 | where
|
36240 36165 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
36241 36166 | B: 'static,
|
36242 36167 |
|
36243 36168 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
36244 36169 | B::Data: Send,
|
36245 36170 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36246 36171 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
36247 36172 | {
|
36248 36173 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
36249 36174 | type Future = StreamingTraitsInputFuture;
|
36250 36175 |
|
36251 36176 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
36252 36177 | let fut = async move {
|
36253 36178 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
36254 36179 | request.headers(),
|
36255 36180 | &CONTENT_TYPE_STREAMINGTRAITS,
|
36256 36181 | ) {
|
36257 36182 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
36258 36183 | }
|
36259 36184 | crate::protocol_serde::shape_streaming_traits::de_streaming_traits_http_request(request)
|
36260 36185 | .await
|
36261 - | .map_err(Into::into)
|
36262 36186 | };
|
36263 36187 | use ::futures_util::future::TryFutureExt;
|
36264 36188 | let fut = fut.map_err(
|
36265 36189 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
36266 36190 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
36267 36191 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
36268 36192 | e,
|
36269 36193 | )
|
36270 36194 | },
|
36271 36195 | );
|
36272 36196 | StreamingTraitsInputFuture {
|
36273 36197 | inner: Box::pin(fut),
|
36274 36198 | }
|
36275 36199 | }
|
36276 36200 | }
|
36277 36201 | impl
|
36278 36202 | ::aws_smithy_http_server::response::IntoResponse<
|
36279 36203 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36280 36204 | > for crate::output::StreamingTraitsOutput
|
36281 36205 | {
|
36282 36206 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
36283 36207 | match crate::protocol_serde::shape_streaming_traits::ser_streaming_traits_http_response(
|
36284 36208 | self,
|
36285 36209 | ) {
|
36286 36210 | Ok(response) => response,
|
36287 36211 | Err(e) => {
|
36288 36212 | ::tracing::error!(error = %e, "failed to serialize response");
|
36289 36213 | ::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))
|
36290 36214 | }
|
36291 36215 | }
|
@@ -36501,36425 +36561,36484 @@
36501 36425 | }
|
36502 36426 |
|
36503 36427 | impl<B>
|
36504 36428 | ::aws_smithy_http_server::request::FromRequest<
|
36505 36429 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36506 36430 | B,
|
36507 36431 | > for crate::input::HttpResponseCodeInput
|
36508 36432 | where
|
36509 36433 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
36510 36434 | B: 'static,
|
36511 36435 |
|
36512 36436 | B::Data: Send,
|
36513 36437 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36514 36438 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
36515 36439 | {
|
36516 36440 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
36517 36441 | type Future = HttpResponseCodeInputFuture;
|
36518 36442 |
|
36519 36443 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
36520 36444 | let fut = async move {
|
36521 36445 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
36522 36446 | request.headers(),
|
36523 36447 | &CONTENT_TYPE_HTTPRESPONSECODE,
|
36524 36448 | ) {
|
36525 36449 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
36526 36450 | }
|
36527 36451 | crate::protocol_serde::shape_http_response_code::de_http_response_code_http_request(
|
36528 36452 | request,
|
36529 36453 | )
|
36530 36454 | .await
|
36531 - | .map_err(Into::into)
|
36532 36455 | };
|
36533 36456 | use ::futures_util::future::TryFutureExt;
|
36534 36457 | let fut = fut.map_err(
|
36535 36458 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
36536 36459 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
36537 36460 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
36538 36461 | e,
|
36539 36462 | )
|
36540 36463 | },
|
36541 36464 | );
|
36542 36465 | HttpResponseCodeInputFuture {
|
36543 36466 | inner: Box::pin(fut),
|
36544 36467 | }
|
36545 36468 | }
|
36546 36469 | }
|
36547 36470 | impl
|
36548 36471 | ::aws_smithy_http_server::response::IntoResponse<
|
36549 36472 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36550 36473 | > for crate::output::HttpResponseCodeOutput
|
36551 36474 | {
|
36552 36475 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
36553 36476 | match crate::protocol_serde::shape_http_response_code::ser_http_response_code_http_response(
|
36554 36477 | self,
|
36555 36478 | ) {
|
36556 36479 | Ok(response) => response,
|
36557 36480 | Err(e) => {
|
36558 36481 | ::tracing::error!(error = %e, "failed to serialize response");
|
36559 36482 | ::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))
|
36560 36483 | }
|
36561 36484 | }
|
@@ -36655,36578 +36715,36637 @@
36655 36578 | this.inner.as_mut().poll(cx)
|
36656 36579 | }
|
36657 36580 | }
|
36658 36581 |
|
36659 36582 | impl<B>
|
36660 36583 | ::aws_smithy_http_server::request::FromRequest<
|
36661 36584 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36662 36585 | B,
|
36663 36586 | > for crate::input::HttpPayloadWithUnionInput
|
36664 36587 | where
|
36665 36588 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
36666 36589 | B: 'static,
|
36667 36590 |
|
36668 36591 | B::Data: Send,
|
36669 36592 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36670 36593 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
36671 36594 | {
|
36672 36595 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
36673 36596 | type Future = HttpPayloadWithUnionInputFuture;
|
36674 36597 |
|
36675 36598 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
36676 36599 | let fut = async move {
|
36677 36600 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
36678 36601 | request.headers(),
|
36679 36602 | &CONTENT_TYPE_HTTPPAYLOADWITHUNION,
|
36680 36603 | ) {
|
36681 36604 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
36682 36605 | }
|
36683 36606 | crate::protocol_serde::shape_http_payload_with_union::de_http_payload_with_union_http_request(request)
|
36684 36607 | .await
|
36685 - | .map_err(Into::into)
|
36686 36608 | };
|
36687 36609 | use ::futures_util::future::TryFutureExt;
|
36688 36610 | let fut = fut.map_err(
|
36689 36611 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
36690 36612 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
36691 36613 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
36692 36614 | e,
|
36693 36615 | )
|
36694 36616 | },
|
36695 36617 | );
|
36696 36618 | HttpPayloadWithUnionInputFuture {
|
36697 36619 | inner: Box::pin(fut),
|
36698 36620 | }
|
36699 36621 | }
|
36700 36622 | }
|
36701 36623 | impl
|
36702 36624 | ::aws_smithy_http_server::response::IntoResponse<
|
36703 36625 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36704 36626 | > for crate::output::HttpPayloadWithUnionOutput
|
36705 36627 | {
|
36706 36628 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
36707 36629 | match crate::protocol_serde::shape_http_payload_with_union::ser_http_payload_with_union_http_response(self) {
|
36708 36630 | Ok(response) => response,
|
36709 36631 | Err(e) => {
|
36710 36632 | ::tracing::error!(error = %e, "failed to serialize response");
|
36711 36633 | ::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))
|
36712 36634 | }
|
36713 36635 | }
|
36714 36636 | }
|
36715 36637 | }
|
@@ -36903,36825 +36963,36884 @@
36903 36825 | }
|
36904 36826 |
|
36905 36827 | impl<B>
|
36906 36828 | ::aws_smithy_http_server::request::FromRequest<
|
36907 36829 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36908 36830 | B,
|
36909 36831 | > for crate::input::HttpStringPayloadInput
|
36910 36832 | where
|
36911 36833 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
36912 36834 | B: 'static,
|
36913 36835 |
|
36914 36836 | B::Data: Send,
|
36915 36837 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36916 36838 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
36917 36839 | {
|
36918 36840 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
36919 36841 | type Future = HttpStringPayloadInputFuture;
|
36920 36842 |
|
36921 36843 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
36922 36844 | let fut = async move {
|
36923 36845 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
36924 36846 | request.headers(),
|
36925 36847 | &CONTENT_TYPE_HTTPSTRINGPAYLOAD,
|
36926 36848 | ) {
|
36927 36849 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
36928 36850 | }
|
36929 36851 | crate::protocol_serde::shape_http_string_payload::de_http_string_payload_http_request(
|
36930 36852 | request,
|
36931 36853 | )
|
36932 36854 | .await
|
36933 - | .map_err(Into::into)
|
36934 36855 | };
|
36935 36856 | use ::futures_util::future::TryFutureExt;
|
36936 36857 | let fut = fut.map_err(
|
36937 36858 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
36938 36859 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
36939 36860 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
36940 36861 | e,
|
36941 36862 | )
|
36942 36863 | },
|
36943 36864 | );
|
36944 36865 | HttpStringPayloadInputFuture {
|
36945 36866 | inner: Box::pin(fut),
|
36946 36867 | }
|
36947 36868 | }
|
36948 36869 | }
|
36949 36870 | impl
|
36950 36871 | ::aws_smithy_http_server::response::IntoResponse<
|
36951 36872 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
36952 36873 | > for crate::output::HttpStringPayloadOutput
|
36953 36874 | {
|
36954 36875 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
36955 36876 | match crate::protocol_serde::shape_http_string_payload::ser_http_string_payload_http_response(self) {
|
36956 36877 | Ok(response) => response,
|
36957 36878 | Err(e) => {
|
36958 36879 | ::tracing::error!(error = %e, "failed to serialize response");
|
36959 36880 | ::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))
|
36960 36881 | }
|
36961 36882 | }
|
36962 36883 | }
|
36963 36884 | }
|
@@ -37209,37130 +37269,37189 @@
37209 37130 | }
|
37210 37131 |
|
37211 37132 | impl<B>
|
37212 37133 | ::aws_smithy_http_server::request::FromRequest<
|
37213 37134 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37214 37135 | B,
|
37215 37136 | > for crate::input::HttpEnumPayloadInput
|
37216 37137 | where
|
37217 37138 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
37218 37139 | B: 'static,
|
37219 37140 |
|
37220 37141 | B::Data: Send,
|
37221 37142 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37222 37143 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
37223 37144 | {
|
37224 37145 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
37225 37146 | type Future = HttpEnumPayloadInputFuture;
|
37226 37147 |
|
37227 37148 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
37228 37149 | let fut = async move {
|
37229 37150 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
37230 37151 | request.headers(),
|
37231 37152 | &CONTENT_TYPE_HTTPENUMPAYLOAD,
|
37232 37153 | ) {
|
37233 37154 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
37234 37155 | }
|
37235 37156 | crate::protocol_serde::shape_http_enum_payload::de_http_enum_payload_http_request(
|
37236 37157 | request,
|
37237 37158 | )
|
37238 37159 | .await
|
37239 - | .map_err(Into::into)
|
37240 37160 | };
|
37241 37161 | use ::futures_util::future::TryFutureExt;
|
37242 37162 | let fut = fut.map_err(
|
37243 37163 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
37244 37164 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
37245 37165 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
37246 37166 | e,
|
37247 37167 | )
|
37248 37168 | },
|
37249 37169 | );
|
37250 37170 | HttpEnumPayloadInputFuture {
|
37251 37171 | inner: Box::pin(fut),
|
37252 37172 | }
|
37253 37173 | }
|
37254 37174 | }
|
37255 37175 | impl
|
37256 37176 | ::aws_smithy_http_server::response::IntoResponse<
|
37257 37177 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37258 37178 | > for crate::output::HttpEnumPayloadOutput
|
37259 37179 | {
|
37260 37180 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
37261 37181 | match crate::protocol_serde::shape_http_enum_payload::ser_http_enum_payload_http_response(
|
37262 37182 | self,
|
37263 37183 | ) {
|
37264 37184 | Ok(response) => response,
|
37265 37185 | Err(e) => {
|
37266 37186 | ::tracing::error!(error = %e, "failed to serialize response");
|
37267 37187 | ::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))
|
37268 37188 | }
|
37269 37189 | }
|
@@ -37402,37322 +37462,37381 @@
37402 37322 | this.inner.as_mut().poll(cx)
|
37403 37323 | }
|
37404 37324 | }
|
37405 37325 |
|
37406 37326 | impl<B>
|
37407 37327 | ::aws_smithy_http_server::request::FromRequest<
|
37408 37328 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37409 37329 | B,
|
37410 37330 | > for crate::input::HttpPayloadWithStructureInput
|
37411 37331 | where
|
37412 37332 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
37413 37333 | B: 'static,
|
37414 37334 |
|
37415 37335 | B::Data: Send,
|
37416 37336 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37417 37337 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
37418 37338 | {
|
37419 37339 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
37420 37340 | type Future = HttpPayloadWithStructureInputFuture;
|
37421 37341 |
|
37422 37342 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
37423 37343 | let fut = async move {
|
37424 37344 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
37425 37345 | request.headers(),
|
37426 37346 | &CONTENT_TYPE_HTTPPAYLOADWITHSTRUCTURE,
|
37427 37347 | ) {
|
37428 37348 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
37429 37349 | }
|
37430 37350 | crate::protocol_serde::shape_http_payload_with_structure::de_http_payload_with_structure_http_request(request)
|
37431 37351 | .await
|
37432 - | .map_err(Into::into)
|
37433 37352 | };
|
37434 37353 | use ::futures_util::future::TryFutureExt;
|
37435 37354 | let fut = fut.map_err(
|
37436 37355 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
37437 37356 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
37438 37357 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
37439 37358 | e,
|
37440 37359 | )
|
37441 37360 | },
|
37442 37361 | );
|
37443 37362 | HttpPayloadWithStructureInputFuture {
|
37444 37363 | inner: Box::pin(fut),
|
37445 37364 | }
|
37446 37365 | }
|
37447 37366 | }
|
37448 37367 | impl
|
37449 37368 | ::aws_smithy_http_server::response::IntoResponse<
|
37450 37369 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37451 37370 | > for crate::output::HttpPayloadWithStructureOutput
|
37452 37371 | {
|
37453 37372 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
37454 37373 | match crate::protocol_serde::shape_http_payload_with_structure::ser_http_payload_with_structure_http_response(self) {
|
37455 37374 | Ok(response) => response,
|
37456 37375 | Err(e) => {
|
37457 37376 | ::tracing::error!(error = %e, "failed to serialize response");
|
37458 37377 | ::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))
|
37459 37378 | }
|
37460 37379 | }
|
37461 37380 | }
|
37462 37381 | }
|
@@ -37582,37501 +37642,37560 @@
37582 37501 | this.inner.as_mut().poll(cx)
|
37583 37502 | }
|
37584 37503 | }
|
37585 37504 |
|
37586 37505 | impl<B>
|
37587 37506 | ::aws_smithy_http_server::request::FromRequest<
|
37588 37507 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37589 37508 | B,
|
37590 37509 | > for crate::input::HttpPayloadTraitsWithMediaTypeInput
|
37591 37510 | where
|
37592 37511 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
37593 37512 | B: 'static,
|
37594 37513 |
|
37595 37514 | B::Data: Send,
|
37596 37515 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37597 37516 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
37598 37517 | {
|
37599 37518 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
37600 37519 | type Future = HttpPayloadTraitsWithMediaTypeInputFuture;
|
37601 37520 |
|
37602 37521 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
37603 37522 | let fut = async move {
|
37604 37523 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
37605 37524 | request.headers(),
|
37606 37525 | &CONTENT_TYPE_HTTPPAYLOADTRAITSWITHMEDIATYPE,
|
37607 37526 | ) {
|
37608 37527 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
37609 37528 | }
|
37610 37529 | crate::protocol_serde::shape_http_payload_traits_with_media_type::de_http_payload_traits_with_media_type_http_request(request)
|
37611 37530 | .await
|
37612 - | .map_err(Into::into)
|
37613 37531 | };
|
37614 37532 | use ::futures_util::future::TryFutureExt;
|
37615 37533 | let fut = fut.map_err(
|
37616 37534 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
37617 37535 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
37618 37536 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
37619 37537 | e,
|
37620 37538 | )
|
37621 37539 | },
|
37622 37540 | );
|
37623 37541 | HttpPayloadTraitsWithMediaTypeInputFuture {
|
37624 37542 | inner: Box::pin(fut),
|
37625 37543 | }
|
37626 37544 | }
|
37627 37545 | }
|
37628 37546 | impl
|
37629 37547 | ::aws_smithy_http_server::response::IntoResponse<
|
37630 37548 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37631 37549 | > for crate::output::HttpPayloadTraitsWithMediaTypeOutput
|
37632 37550 | {
|
37633 37551 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
37634 37552 | match crate::protocol_serde::shape_http_payload_traits_with_media_type::ser_http_payload_traits_with_media_type_http_response(self) {
|
37635 37553 | Ok(response) => response,
|
37636 37554 | Err(e) => {
|
37637 37555 | ::tracing::error!(error = %e, "failed to serialize response");
|
37638 37556 | ::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))
|
37639 37557 | }
|
37640 37558 | }
|
37641 37559 | }
|
37642 37560 | }
|
@@ -37749,37667 +37809,37726 @@
37749 37667 | self: std::pin::Pin<&mut Self>,
|
37750 37668 | cx: &mut std::task::Context<'_>,
|
37751 37669 | ) -> std::task::Poll<Self::Output> {
|
37752 37670 | let this = self.project();
|
37753 37671 | this.inner.as_mut().poll(cx)
|
37754 37672 | }
|
37755 37673 | }
|
37756 37674 |
|
37757 37675 | impl<B>
|
37758 37676 | ::aws_smithy_http_server::request::FromRequest<
|
37759 37677 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37760 37678 | B,
|
37761 37679 | > for crate::input::HttpPayloadTraitsInput
|
37762 37680 | where
|
37763 37681 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
37764 37682 | B: 'static,
|
37765 37683 |
|
37766 37684 | B::Data: Send,
|
37767 37685 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37768 37686 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
37769 37687 | {
|
37770 37688 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
37771 37689 | type Future = HttpPayloadTraitsInputFuture;
|
37772 37690 |
|
37773 37691 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
37774 37692 | let fut = async move {
|
37775 37693 | crate::protocol_serde::shape_http_payload_traits::de_http_payload_traits_http_request(
|
37776 37694 | request,
|
37777 37695 | )
|
37778 37696 | .await
|
37779 - | .map_err(Into::into)
|
37780 37697 | };
|
37781 37698 | use ::futures_util::future::TryFutureExt;
|
37782 37699 | let fut = fut.map_err(
|
37783 37700 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
37784 37701 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
37785 37702 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
37786 37703 | e,
|
37787 37704 | )
|
37788 37705 | },
|
37789 37706 | );
|
37790 37707 | HttpPayloadTraitsInputFuture {
|
37791 37708 | inner: Box::pin(fut),
|
37792 37709 | }
|
37793 37710 | }
|
37794 37711 | }
|
37795 37712 | impl
|
37796 37713 | ::aws_smithy_http_server::response::IntoResponse<
|
37797 37714 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
37798 37715 | > for crate::output::HttpPayloadTraitsOutput
|
37799 37716 | {
|
37800 37717 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
37801 37718 | match crate::protocol_serde::shape_http_payload_traits::ser_http_payload_traits_http_response(self) {
|
37802 37719 | Ok(response) => response,
|
37803 37720 | Err(e) => {
|
37804 37721 | ::tracing::error!(error = %e, "failed to serialize response");
|
37805 37722 | ::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))
|
37806 37723 | }
|
37807 37724 | }
|
37808 37725 | }
|
37809 37726 | }
|
@@ -38157,38074 +38217,38133 @@
38157 38074 | this.inner.as_mut().poll(cx)
|
38158 38075 | }
|
38159 38076 | }
|
38160 38077 |
|
38161 38078 | impl<B>
|
38162 38079 | ::aws_smithy_http_server::request::FromRequest<
|
38163 38080 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38164 38081 | B,
|
38165 38082 | > for crate::input::HttpPrefixHeadersInResponseInput
|
38166 38083 | where
|
38167 38084 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38168 38085 | B: 'static,
|
38169 38086 |
|
38170 38087 | B::Data: Send,
|
38171 38088 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
38172 38089 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38173 38090 | {
|
38174 38091 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38175 38092 | type Future = HttpPrefixHeadersInResponseInputFuture;
|
38176 38093 |
|
38177 38094 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
38178 38095 | let fut = async move {
|
38179 38096 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
38180 38097 | request.headers(),
|
38181 38098 | &CONTENT_TYPE_HTTPPREFIXHEADERSINRESPONSE,
|
38182 38099 | ) {
|
38183 38100 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
38184 38101 | }
|
38185 38102 | crate::protocol_serde::shape_http_prefix_headers_in_response::de_http_prefix_headers_in_response_http_request(request)
|
38186 38103 | .await
|
38187 - | .map_err(Into::into)
|
38188 38104 | };
|
38189 38105 | use ::futures_util::future::TryFutureExt;
|
38190 38106 | let fut = fut.map_err(
|
38191 38107 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
38192 38108 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
38193 38109 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
38194 38110 | e,
|
38195 38111 | )
|
38196 38112 | },
|
38197 38113 | );
|
38198 38114 | HttpPrefixHeadersInResponseInputFuture {
|
38199 38115 | inner: Box::pin(fut),
|
38200 38116 | }
|
38201 38117 | }
|
38202 38118 | }
|
38203 38119 | impl
|
38204 38120 | ::aws_smithy_http_server::response::IntoResponse<
|
38205 38121 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38206 38122 | > for crate::output::HttpPrefixHeadersInResponseOutput
|
38207 38123 | {
|
38208 38124 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
38209 38125 | match crate::protocol_serde::shape_http_prefix_headers_in_response::ser_http_prefix_headers_in_response_http_response(self) {
|
38210 38126 | Ok(response) => response,
|
38211 38127 | Err(e) => {
|
38212 38128 | ::tracing::error!(error = %e, "failed to serialize response");
|
38213 38129 | ::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))
|
38214 38130 | }
|
38215 38131 | }
|
38216 38132 | }
|
38217 38133 | }
|
@@ -38272,38188 +38332,38247 @@
38272 38188 | }
|
38273 38189 |
|
38274 38190 | impl<B>
|
38275 38191 | ::aws_smithy_http_server::request::FromRequest<
|
38276 38192 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38277 38193 | B,
|
38278 38194 | > for crate::input::HttpPrefixHeadersInput
|
38279 38195 | where
|
38280 38196 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38281 38197 | B: 'static,
|
38282 38198 |
|
38283 38199 | B::Data: Send,
|
38284 38200 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
38285 38201 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38286 38202 | {
|
38287 38203 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38288 38204 | type Future = HttpPrefixHeadersInputFuture;
|
38289 38205 |
|
38290 38206 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
38291 38207 | let fut = async move {
|
38292 38208 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
38293 38209 | request.headers(),
|
38294 38210 | &CONTENT_TYPE_HTTPPREFIXHEADERS,
|
38295 38211 | ) {
|
38296 38212 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
38297 38213 | }
|
38298 38214 | crate::protocol_serde::shape_http_prefix_headers::de_http_prefix_headers_http_request(
|
38299 38215 | request,
|
38300 38216 | )
|
38301 38217 | .await
|
38302 - | .map_err(Into::into)
|
38303 38218 | };
|
38304 38219 | use ::futures_util::future::TryFutureExt;
|
38305 38220 | let fut = fut.map_err(
|
38306 38221 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
38307 38222 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
38308 38223 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
38309 38224 | e,
|
38310 38225 | )
|
38311 38226 | },
|
38312 38227 | );
|
38313 38228 | HttpPrefixHeadersInputFuture {
|
38314 38229 | inner: Box::pin(fut),
|
38315 38230 | }
|
38316 38231 | }
|
38317 38232 | }
|
38318 38233 | impl
|
38319 38234 | ::aws_smithy_http_server::response::IntoResponse<
|
38320 38235 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38321 38236 | > for crate::output::HttpPrefixHeadersOutput
|
38322 38237 | {
|
38323 38238 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
38324 38239 | match crate::protocol_serde::shape_http_prefix_headers::ser_http_prefix_headers_http_response(self) {
|
38325 38240 | Ok(response) => response,
|
38326 38241 | Err(e) => {
|
38327 38242 | ::tracing::error!(error = %e, "failed to serialize response");
|
38328 38243 | ::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))
|
38329 38244 | }
|
38330 38245 | }
|
38331 38246 | }
|
38332 38247 | }
|
@@ -38459,38374 +38519,38433 @@
38459 38374 | this.inner.as_mut().poll(cx)
|
38460 38375 | }
|
38461 38376 | }
|
38462 38377 |
|
38463 38378 | impl<B>
|
38464 38379 | ::aws_smithy_http_server::request::FromRequest<
|
38465 38380 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38466 38381 | B,
|
38467 38382 | > for crate::input::QueryParamsAsStringListMapInput
|
38468 38383 | where
|
38469 38384 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38470 38385 | B: 'static,
|
38471 38386 |
|
38472 38387 | B::Data: Send,
|
38473 38388 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
38474 38389 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38475 38390 | {
|
38476 38391 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38477 38392 | type Future = QueryParamsAsStringListMapInputFuture;
|
38478 38393 |
|
38479 38394 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
38480 38395 | let fut = async move {
|
38481 38396 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
38482 38397 | request.headers(),
|
38483 38398 | &CONTENT_TYPE_QUERYPARAMSASSTRINGLISTMAP,
|
38484 38399 | ) {
|
38485 38400 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
38486 38401 | }
|
38487 38402 | crate::protocol_serde::shape_query_params_as_string_list_map::de_query_params_as_string_list_map_http_request(request)
|
38488 38403 | .await
|
38489 - | .map_err(Into::into)
|
38490 38404 | };
|
38491 38405 | use ::futures_util::future::TryFutureExt;
|
38492 38406 | let fut = fut.map_err(
|
38493 38407 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
38494 38408 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
38495 38409 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
38496 38410 | e,
|
38497 38411 | )
|
38498 38412 | },
|
38499 38413 | );
|
38500 38414 | QueryParamsAsStringListMapInputFuture {
|
38501 38415 | inner: Box::pin(fut),
|
38502 38416 | }
|
38503 38417 | }
|
38504 38418 | }
|
38505 38419 | impl
|
38506 38420 | ::aws_smithy_http_server::response::IntoResponse<
|
38507 38421 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38508 38422 | > for crate::output::QueryParamsAsStringListMapOutput
|
38509 38423 | {
|
38510 38424 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
38511 38425 | match crate::protocol_serde::shape_query_params_as_string_list_map::ser_query_params_as_string_list_map_http_response(self) {
|
38512 38426 | Ok(response) => response,
|
38513 38427 | Err(e) => {
|
38514 38428 | ::tracing::error!(error = %e, "failed to serialize response");
|
38515 38429 | ::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))
|
38516 38430 | }
|
38517 38431 | }
|
38518 38432 | }
|
38519 38433 | }
|
@@ -38605,38519 +38665,38578 @@
38605 38519 | this.inner.as_mut().poll(cx)
|
38606 38520 | }
|
38607 38521 | }
|
38608 38522 |
|
38609 38523 | impl<B>
|
38610 38524 | ::aws_smithy_http_server::request::FromRequest<
|
38611 38525 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38612 38526 | B,
|
38613 38527 | > for crate::input::QueryPrecedenceInput
|
38614 38528 | where
|
38615 38529 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38616 38530 | B: 'static,
|
38617 38531 |
|
38618 38532 | B::Data: Send,
|
38619 38533 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
38620 38534 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38621 38535 | {
|
38622 38536 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38623 38537 | type Future = QueryPrecedenceInputFuture;
|
38624 38538 |
|
38625 38539 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
38626 38540 | let fut = async move {
|
38627 38541 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
38628 38542 | request.headers(),
|
38629 38543 | &CONTENT_TYPE_QUERYPRECEDENCE,
|
38630 38544 | ) {
|
38631 38545 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
38632 38546 | }
|
38633 38547 | crate::protocol_serde::shape_query_precedence::de_query_precedence_http_request(request)
|
38634 38548 | .await
|
38635 - | .map_err(Into::into)
|
38636 38549 | };
|
38637 38550 | use ::futures_util::future::TryFutureExt;
|
38638 38551 | let fut = fut.map_err(
|
38639 38552 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
38640 38553 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
38641 38554 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
38642 38555 | e,
|
38643 38556 | )
|
38644 38557 | },
|
38645 38558 | );
|
38646 38559 | QueryPrecedenceInputFuture {
|
38647 38560 | inner: Box::pin(fut),
|
38648 38561 | }
|
38649 38562 | }
|
38650 38563 | }
|
38651 38564 | impl
|
38652 38565 | ::aws_smithy_http_server::response::IntoResponse<
|
38653 38566 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38654 38567 | > for crate::output::QueryPrecedenceOutput
|
38655 38568 | {
|
38656 38569 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
38657 38570 | match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_response(
|
38658 38571 | self,
|
38659 38572 | ) {
|
38660 38573 | Ok(response) => response,
|
38661 38574 | Err(e) => {
|
38662 38575 | ::tracing::error!(error = %e, "failed to serialize response");
|
38663 38576 | ::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))
|
38664 38577 | }
|
38665 38578 | }
|
@@ -38746,38659 +38806,38718 @@
38746 38659 | this.inner.as_mut().poll(cx)
|
38747 38660 | }
|
38748 38661 | }
|
38749 38662 |
|
38750 38663 | impl<B>
|
38751 38664 | ::aws_smithy_http_server::request::FromRequest<
|
38752 38665 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38753 38666 | B,
|
38754 38667 | > for crate::input::QueryIdempotencyTokenAutoFillInput
|
38755 38668 | where
|
38756 38669 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38757 38670 | B: 'static,
|
38758 38671 |
|
38759 38672 | B::Data: Send,
|
38760 38673 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
38761 38674 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38762 38675 | {
|
38763 38676 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38764 38677 | type Future = QueryIdempotencyTokenAutoFillInputFuture;
|
38765 38678 |
|
38766 38679 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
38767 38680 | let fut = async move {
|
38768 38681 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
38769 38682 | request.headers(),
|
38770 38683 | &CONTENT_TYPE_QUERYIDEMPOTENCYTOKENAUTOFILL,
|
38771 38684 | ) {
|
38772 38685 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
38773 38686 | }
|
38774 38687 | crate::protocol_serde::shape_query_idempotency_token_auto_fill::de_query_idempotency_token_auto_fill_http_request(request)
|
38775 38688 | .await
|
38776 - | .map_err(Into::into)
|
38777 38689 | };
|
38778 38690 | use ::futures_util::future::TryFutureExt;
|
38779 38691 | let fut = fut.map_err(
|
38780 38692 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
38781 38693 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
38782 38694 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
38783 38695 | e,
|
38784 38696 | )
|
38785 38697 | },
|
38786 38698 | );
|
38787 38699 | QueryIdempotencyTokenAutoFillInputFuture {
|
38788 38700 | inner: Box::pin(fut),
|
38789 38701 | }
|
38790 38702 | }
|
38791 38703 | }
|
38792 38704 | impl
|
38793 38705 | ::aws_smithy_http_server::response::IntoResponse<
|
38794 38706 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38795 38707 | > for crate::output::QueryIdempotencyTokenAutoFillOutput
|
38796 38708 | {
|
38797 38709 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
38798 38710 | match crate::protocol_serde::shape_query_idempotency_token_auto_fill::ser_query_idempotency_token_auto_fill_http_response(self) {
|
38799 38711 | Ok(response) => response,
|
38800 38712 | Err(e) => {
|
38801 38713 | ::tracing::error!(error = %e, "failed to serialize response");
|
38802 38714 | ::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))
|
38803 38715 | }
|
38804 38716 | }
|
38805 38717 | }
|
38806 38718 | }
|
@@ -38828,38740 +38888,38799 @@
38828 38740 | this.inner.as_mut().poll(cx)
|
38829 38741 | }
|
38830 38742 | }
|
38831 38743 |
|
38832 38744 | impl<B>
|
38833 38745 | ::aws_smithy_http_server::request::FromRequest<
|
38834 38746 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38835 38747 | B,
|
38836 38748 | > for crate::input::OmitsSerializingEmptyListsInput
|
38837 38749 | where
|
38838 38750 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38839 38751 | B: 'static,
|
38840 38752 |
|
38841 38753 | B::Data: Send,
|
38842 38754 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
38843 38755 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38844 38756 | {
|
38845 38757 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38846 38758 | type Future = OmitsSerializingEmptyListsInputFuture;
|
38847 38759 |
|
38848 38760 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
38849 38761 | let fut = async move {
|
38850 38762 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
38851 38763 | request.headers(),
|
38852 38764 | &CONTENT_TYPE_OMITSSERIALIZINGEMPTYLISTS,
|
38853 38765 | ) {
|
38854 38766 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
38855 38767 | }
|
38856 38768 | crate::protocol_serde::shape_omits_serializing_empty_lists::de_omits_serializing_empty_lists_http_request(request)
|
38857 38769 | .await
|
38858 - | .map_err(Into::into)
|
38859 38770 | };
|
38860 38771 | use ::futures_util::future::TryFutureExt;
|
38861 38772 | let fut = fut.map_err(
|
38862 38773 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
38863 38774 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
38864 38775 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
38865 38776 | e,
|
38866 38777 | )
|
38867 38778 | },
|
38868 38779 | );
|
38869 38780 | OmitsSerializingEmptyListsInputFuture {
|
38870 38781 | inner: Box::pin(fut),
|
38871 38782 | }
|
38872 38783 | }
|
38873 38784 | }
|
38874 38785 | impl
|
38875 38786 | ::aws_smithy_http_server::response::IntoResponse<
|
38876 38787 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38877 38788 | > for crate::output::OmitsSerializingEmptyListsOutput
|
38878 38789 | {
|
38879 38790 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
38880 38791 | match crate::protocol_serde::shape_omits_serializing_empty_lists::ser_omits_serializing_empty_lists_http_response(self) {
|
38881 38792 | Ok(response) => response,
|
38882 38793 | Err(e) => {
|
38883 38794 | ::tracing::error!(error = %e, "failed to serialize response");
|
38884 38795 | ::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))
|
38885 38796 | }
|
38886 38797 | }
|
38887 38798 | }
|
38888 38799 | }
|
@@ -38987,38898 +39047,38957 @@
38987 38898 | this.inner.as_mut().poll(cx)
|
38988 38899 | }
|
38989 38900 | }
|
38990 38901 |
|
38991 38902 | impl<B>
|
38992 38903 | ::aws_smithy_http_server::request::FromRequest<
|
38993 38904 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
38994 38905 | B,
|
38995 38906 | > for crate::input::OmitsNullSerializesEmptyStringInput
|
38996 38907 | where
|
38997 38908 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38998 38909 | B: 'static,
|
38999 38910 |
|
39000 38911 | B::Data: Send,
|
39001 38912 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
39002 38913 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
39003 38914 | {
|
39004 38915 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39005 38916 | type Future = OmitsNullSerializesEmptyStringInputFuture;
|
39006 38917 |
|
39007 38918 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
39008 38919 | let fut = async move {
|
39009 38920 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
39010 38921 | request.headers(),
|
39011 38922 | &CONTENT_TYPE_OMITSNULLSERIALIZESEMPTYSTRING,
|
39012 38923 | ) {
|
39013 38924 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
39014 38925 | }
|
39015 38926 | crate::protocol_serde::shape_omits_null_serializes_empty_string::de_omits_null_serializes_empty_string_http_request(request)
|
39016 38927 | .await
|
39017 - | .map_err(Into::into)
|
39018 38928 | };
|
39019 38929 | use ::futures_util::future::TryFutureExt;
|
39020 38930 | let fut = fut.map_err(
|
39021 38931 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
39022 38932 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
39023 38933 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
39024 38934 | e,
|
39025 38935 | )
|
39026 38936 | },
|
39027 38937 | );
|
39028 38938 | OmitsNullSerializesEmptyStringInputFuture {
|
39029 38939 | inner: Box::pin(fut),
|
39030 38940 | }
|
39031 38941 | }
|
39032 38942 | }
|
39033 38943 | impl
|
39034 38944 | ::aws_smithy_http_server::response::IntoResponse<
|
39035 38945 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39036 38946 | > for crate::output::OmitsNullSerializesEmptyStringOutput
|
39037 38947 | {
|
39038 38948 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
39039 38949 | match crate::protocol_serde::shape_omits_null_serializes_empty_string::ser_omits_null_serializes_empty_string_http_response(self) {
|
39040 38950 | Ok(response) => response,
|
39041 38951 | Err(e) => {
|
39042 38952 | ::tracing::error!(error = %e, "failed to serialize response");
|
39043 38953 | ::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))
|
39044 38954 | }
|
39045 38955 | }
|
39046 38956 | }
|
39047 38957 | }
|
@@ -39172,39082 +39232,39141 @@
39172 39082 | this.inner.as_mut().poll(cx)
|
39173 39083 | }
|
39174 39084 | }
|
39175 39085 |
|
39176 39086 | impl<B>
|
39177 39087 | ::aws_smithy_http_server::request::FromRequest<
|
39178 39088 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39179 39089 | B,
|
39180 39090 | > for crate::input::IgnoreQueryParamsInResponseInput
|
39181 39091 | where
|
39182 39092 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
39183 39093 | B: 'static,
|
39184 39094 |
|
39185 39095 | B::Data: Send,
|
39186 39096 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
39187 39097 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
39188 39098 | {
|
39189 39099 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39190 39100 | type Future = IgnoreQueryParamsInResponseInputFuture;
|
39191 39101 |
|
39192 39102 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
39193 39103 | let fut = async move {
|
39194 39104 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
39195 39105 | request.headers(),
|
39196 39106 | &CONTENT_TYPE_IGNOREQUERYPARAMSINRESPONSE,
|
39197 39107 | ) {
|
39198 39108 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
39199 39109 | }
|
39200 39110 | crate::protocol_serde::shape_ignore_query_params_in_response::de_ignore_query_params_in_response_http_request(request)
|
39201 39111 | .await
|
39202 - | .map_err(Into::into)
|
39203 39112 | };
|
39204 39113 | use ::futures_util::future::TryFutureExt;
|
39205 39114 | let fut = fut.map_err(
|
39206 39115 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
39207 39116 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
39208 39117 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
39209 39118 | e,
|
39210 39119 | )
|
39211 39120 | },
|
39212 39121 | );
|
39213 39122 | IgnoreQueryParamsInResponseInputFuture {
|
39214 39123 | inner: Box::pin(fut),
|
39215 39124 | }
|
39216 39125 | }
|
39217 39126 | }
|
39218 39127 | impl
|
39219 39128 | ::aws_smithy_http_server::response::IntoResponse<
|
39220 39129 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39221 39130 | > for crate::output::IgnoreQueryParamsInResponseOutput
|
39222 39131 | {
|
39223 39132 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
39224 39133 | match crate::protocol_serde::shape_ignore_query_params_in_response::ser_ignore_query_params_in_response_http_response(self) {
|
39225 39134 | Ok(response) => response,
|
39226 39135 | Err(e) => {
|
39227 39136 | ::tracing::error!(error = %e, "failed to serialize response");
|
39228 39137 | ::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))
|
39229 39138 | }
|
39230 39139 | }
|
39231 39140 | }
|
39232 39141 | }
|
@@ -39291,39200 +39351,39259 @@
39291 39200 | this.inner.as_mut().poll(cx)
|
39292 39201 | }
|
39293 39202 | }
|
39294 39203 |
|
39295 39204 | impl<B>
|
39296 39205 | ::aws_smithy_http_server::request::FromRequest<
|
39297 39206 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39298 39207 | B,
|
39299 39208 | > for crate::input::ConstantAndVariableQueryStringInput
|
39300 39209 | where
|
39301 39210 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
39302 39211 | B: 'static,
|
39303 39212 |
|
39304 39213 | B::Data: Send,
|
39305 39214 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
39306 39215 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
39307 39216 | {
|
39308 39217 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39309 39218 | type Future = ConstantAndVariableQueryStringInputFuture;
|
39310 39219 |
|
39311 39220 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
39312 39221 | let fut = async move {
|
39313 39222 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
39314 39223 | request.headers(),
|
39315 39224 | &CONTENT_TYPE_CONSTANTANDVARIABLEQUERYSTRING,
|
39316 39225 | ) {
|
39317 39226 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
39318 39227 | }
|
39319 39228 | crate::protocol_serde::shape_constant_and_variable_query_string::de_constant_and_variable_query_string_http_request(request)
|
39320 39229 | .await
|
39321 - | .map_err(Into::into)
|
39322 39230 | };
|
39323 39231 | use ::futures_util::future::TryFutureExt;
|
39324 39232 | let fut = fut.map_err(
|
39325 39233 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
39326 39234 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
39327 39235 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
39328 39236 | e,
|
39329 39237 | )
|
39330 39238 | },
|
39331 39239 | );
|
39332 39240 | ConstantAndVariableQueryStringInputFuture {
|
39333 39241 | inner: Box::pin(fut),
|
39334 39242 | }
|
39335 39243 | }
|
39336 39244 | }
|
39337 39245 | impl
|
39338 39246 | ::aws_smithy_http_server::response::IntoResponse<
|
39339 39247 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39340 39248 | > for crate::output::ConstantAndVariableQueryStringOutput
|
39341 39249 | {
|
39342 39250 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
39343 39251 | match crate::protocol_serde::shape_constant_and_variable_query_string::ser_constant_and_variable_query_string_http_response(self) {
|
39344 39252 | Ok(response) => response,
|
39345 39253 | Err(e) => {
|
39346 39254 | ::tracing::error!(error = %e, "failed to serialize response");
|
39347 39255 | ::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))
|
39348 39256 | }
|
39349 39257 | }
|
39350 39258 | }
|
39351 39259 | }
|
@@ -39480,39388 +39540,39447 @@
39480 39388 | this.inner.as_mut().poll(cx)
|
39481 39389 | }
|
39482 39390 | }
|
39483 39391 |
|
39484 39392 | impl<B>
|
39485 39393 | ::aws_smithy_http_server::request::FromRequest<
|
39486 39394 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39487 39395 | B,
|
39488 39396 | > for crate::input::ConstantQueryStringInput
|
39489 39397 | where
|
39490 39398 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
39491 39399 | B: 'static,
|
39492 39400 |
|
39493 39401 | B::Data: Send,
|
39494 39402 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
39495 39403 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
39496 39404 | {
|
39497 39405 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39498 39406 | type Future = ConstantQueryStringInputFuture;
|
39499 39407 |
|
39500 39408 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
39501 39409 | let fut = async move {
|
39502 39410 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
39503 39411 | request.headers(),
|
39504 39412 | &CONTENT_TYPE_CONSTANTQUERYSTRING,
|
39505 39413 | ) {
|
39506 39414 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
39507 39415 | }
|
39508 39416 | crate::protocol_serde::shape_constant_query_string::de_constant_query_string_http_request(request)
|
39509 39417 | .await
|
39510 - | .map_err(Into::into)
|
39511 39418 | };
|
39512 39419 | use ::futures_util::future::TryFutureExt;
|
39513 39420 | let fut = fut.map_err(
|
39514 39421 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
39515 39422 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
39516 39423 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
39517 39424 | e,
|
39518 39425 | )
|
39519 39426 | },
|
39520 39427 | );
|
39521 39428 | ConstantQueryStringInputFuture {
|
39522 39429 | inner: Box::pin(fut),
|
39523 39430 | }
|
39524 39431 | }
|
39525 39432 | }
|
39526 39433 | impl
|
39527 39434 | ::aws_smithy_http_server::response::IntoResponse<
|
39528 39435 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39529 39436 | > for crate::output::ConstantQueryStringOutput
|
39530 39437 | {
|
39531 39438 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
39532 39439 | match crate::protocol_serde::shape_constant_query_string::ser_constant_query_string_http_response(self) {
|
39533 39440 | Ok(response) => response,
|
39534 39441 | Err(e) => {
|
39535 39442 | ::tracing::error!(error = %e, "failed to serialize response");
|
39536 39443 | ::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))
|
39537 39444 | }
|
39538 39445 | }
|
39539 39446 | }
|
39540 39447 | }
|
@@ -39631,39538 +39691,39597 @@
39631 39538 | this.inner.as_mut().poll(cx)
|
39632 39539 | }
|
39633 39540 | }
|
39634 39541 |
|
39635 39542 | impl<B>
|
39636 39543 | ::aws_smithy_http_server::request::FromRequest<
|
39637 39544 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39638 39545 | B,
|
39639 39546 | > for crate::input::AllQueryStringTypesInput
|
39640 39547 | where
|
39641 39548 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
39642 39549 | B: 'static,
|
39643 39550 |
|
39644 39551 | B::Data: Send,
|
39645 39552 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
39646 39553 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
39647 39554 | {
|
39648 39555 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39649 39556 | type Future = AllQueryStringTypesInputFuture;
|
39650 39557 |
|
39651 39558 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
39652 39559 | let fut = async move {
|
39653 39560 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
39654 39561 | request.headers(),
|
39655 39562 | &CONTENT_TYPE_ALLQUERYSTRINGTYPES,
|
39656 39563 | ) {
|
39657 39564 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
39658 39565 | }
|
39659 39566 | crate::protocol_serde::shape_all_query_string_types::de_all_query_string_types_http_request(request)
|
39660 39567 | .await
|
39661 - | .map_err(Into::into)
|
39662 39568 | };
|
39663 39569 | use ::futures_util::future::TryFutureExt;
|
39664 39570 | let fut = fut.map_err(
|
39665 39571 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
39666 39572 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
39667 39573 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
39668 39574 | e,
|
39669 39575 | )
|
39670 39576 | },
|
39671 39577 | );
|
39672 39578 | AllQueryStringTypesInputFuture {
|
39673 39579 | inner: Box::pin(fut),
|
39674 39580 | }
|
39675 39581 | }
|
39676 39582 | }
|
39677 39583 | impl
|
39678 39584 | ::aws_smithy_http_server::response::IntoResponse<
|
39679 39585 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
39680 39586 | > for crate::output::AllQueryStringTypesOutput
|
39681 39587 | {
|
39682 39588 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
39683 39589 | match crate::protocol_serde::shape_all_query_string_types::ser_all_query_string_types_http_response(self) {
|
39684 39590 | Ok(response) => response,
|
39685 39591 | Err(e) => {
|
39686 39592 | ::tracing::error!(error = %e, "failed to serialize response");
|
39687 39593 | ::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))
|
39688 39594 | }
|
39689 39595 | }
|
39690 39596 | }
|
39691 39597 | }
|
@@ -41034,40940 +41094,40999 @@
41034 40940 | this.inner.as_mut().poll(cx)
|
41035 40941 | }
|
41036 40942 | }
|
41037 40943 |
|
41038 40944 | impl<B>
|
41039 40945 | ::aws_smithy_http_server::request::FromRequest<
|
41040 40946 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41041 40947 | B,
|
41042 40948 | > for crate::input::HttpRequestWithRegexLiteralInput
|
41043 40949 | where
|
41044 40950 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
41045 40951 | B: 'static,
|
41046 40952 |
|
41047 40953 | B::Data: Send,
|
41048 40954 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
41049 40955 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
41050 40956 | {
|
41051 40957 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
41052 40958 | type Future = HttpRequestWithRegexLiteralInputFuture;
|
41053 40959 |
|
41054 40960 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
41055 40961 | let fut = async move {
|
41056 40962 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
41057 40963 | request.headers(),
|
41058 40964 | &CONTENT_TYPE_HTTPREQUESTWITHREGEXLITERAL,
|
41059 40965 | ) {
|
41060 40966 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
41061 40967 | }
|
41062 40968 | crate::protocol_serde::shape_http_request_with_regex_literal::de_http_request_with_regex_literal_http_request(request)
|
41063 40969 | .await
|
41064 - | .map_err(Into::into)
|
41065 40970 | };
|
41066 40971 | use ::futures_util::future::TryFutureExt;
|
41067 40972 | let fut = fut.map_err(
|
41068 40973 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
41069 40974 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
41070 40975 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
41071 40976 | e,
|
41072 40977 | )
|
41073 40978 | },
|
41074 40979 | );
|
41075 40980 | HttpRequestWithRegexLiteralInputFuture {
|
41076 40981 | inner: Box::pin(fut),
|
41077 40982 | }
|
41078 40983 | }
|
41079 40984 | }
|
41080 40985 | impl
|
41081 40986 | ::aws_smithy_http_server::response::IntoResponse<
|
41082 40987 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41083 40988 | > for crate::output::HttpRequestWithRegexLiteralOutput
|
41084 40989 | {
|
41085 40990 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
41086 40991 | match crate::protocol_serde::shape_http_request_with_regex_literal::ser_http_request_with_regex_literal_http_response(self) {
|
41087 40992 | Ok(response) => response,
|
41088 40993 | Err(e) => {
|
41089 40994 | ::tracing::error!(error = %e, "failed to serialize response");
|
41090 40995 | ::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))
|
41091 40996 | }
|
41092 40997 | }
|
41093 40998 | }
|
41094 40999 | }
|
@@ -41186,41091 +41246,41150 @@
41186 41091 | this.inner.as_mut().poll(cx)
|
41187 41092 | }
|
41188 41093 | }
|
41189 41094 |
|
41190 41095 | impl<B>
|
41191 41096 | ::aws_smithy_http_server::request::FromRequest<
|
41192 41097 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41193 41098 | B,
|
41194 41099 | > for crate::input::HttpRequestWithFloatLabelsInput
|
41195 41100 | where
|
41196 41101 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
41197 41102 | B: 'static,
|
41198 41103 |
|
41199 41104 | B::Data: Send,
|
41200 41105 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
41201 41106 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
41202 41107 | {
|
41203 41108 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
41204 41109 | type Future = HttpRequestWithFloatLabelsInputFuture;
|
41205 41110 |
|
41206 41111 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
41207 41112 | let fut = async move {
|
41208 41113 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
41209 41114 | request.headers(),
|
41210 41115 | &CONTENT_TYPE_HTTPREQUESTWITHFLOATLABELS,
|
41211 41116 | ) {
|
41212 41117 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
41213 41118 | }
|
41214 41119 | crate::protocol_serde::shape_http_request_with_float_labels::de_http_request_with_float_labels_http_request(request)
|
41215 41120 | .await
|
41216 - | .map_err(Into::into)
|
41217 41121 | };
|
41218 41122 | use ::futures_util::future::TryFutureExt;
|
41219 41123 | let fut = fut.map_err(
|
41220 41124 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
41221 41125 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
41222 41126 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
41223 41127 | e,
|
41224 41128 | )
|
41225 41129 | },
|
41226 41130 | );
|
41227 41131 | HttpRequestWithFloatLabelsInputFuture {
|
41228 41132 | inner: Box::pin(fut),
|
41229 41133 | }
|
41230 41134 | }
|
41231 41135 | }
|
41232 41136 | impl
|
41233 41137 | ::aws_smithy_http_server::response::IntoResponse<
|
41234 41138 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41235 41139 | > for crate::output::HttpRequestWithFloatLabelsOutput
|
41236 41140 | {
|
41237 41141 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
41238 41142 | match crate::protocol_serde::shape_http_request_with_float_labels::ser_http_request_with_float_labels_http_response(self) {
|
41239 41143 | Ok(response) => response,
|
41240 41144 | Err(e) => {
|
41241 41145 | ::tracing::error!(error = %e, "failed to serialize response");
|
41242 41146 | ::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))
|
41243 41147 | }
|
41244 41148 | }
|
41245 41149 | }
|
41246 41150 | }
|
@@ -41462,41366 +41522,41425 @@
41462 41366 | this.inner.as_mut().poll(cx)
|
41463 41367 | }
|
41464 41368 | }
|
41465 41369 |
|
41466 41370 | impl<B>
|
41467 41371 | ::aws_smithy_http_server::request::FromRequest<
|
41468 41372 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41469 41373 | B,
|
41470 41374 | > for crate::input::HttpRequestWithGreedyLabelInPathInput
|
41471 41375 | where
|
41472 41376 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
41473 41377 | B: 'static,
|
41474 41378 |
|
41475 41379 | B::Data: Send,
|
41476 41380 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
41477 41381 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
41478 41382 | {
|
41479 41383 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
41480 41384 | type Future = HttpRequestWithGreedyLabelInPathInputFuture;
|
41481 41385 |
|
41482 41386 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
41483 41387 | let fut = async move {
|
41484 41388 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
41485 41389 | request.headers(),
|
41486 41390 | &CONTENT_TYPE_HTTPREQUESTWITHGREEDYLABELINPATH,
|
41487 41391 | ) {
|
41488 41392 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
41489 41393 | }
|
41490 41394 | crate::protocol_serde::shape_http_request_with_greedy_label_in_path::de_http_request_with_greedy_label_in_path_http_request(request)
|
41491 41395 | .await
|
41492 - | .map_err(Into::into)
|
41493 41396 | };
|
41494 41397 | use ::futures_util::future::TryFutureExt;
|
41495 41398 | let fut = fut.map_err(
|
41496 41399 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
41497 41400 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
41498 41401 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
41499 41402 | e,
|
41500 41403 | )
|
41501 41404 | },
|
41502 41405 | );
|
41503 41406 | HttpRequestWithGreedyLabelInPathInputFuture {
|
41504 41407 | inner: Box::pin(fut),
|
41505 41408 | }
|
41506 41409 | }
|
41507 41410 | }
|
41508 41411 | impl
|
41509 41412 | ::aws_smithy_http_server::response::IntoResponse<
|
41510 41413 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41511 41414 | > for crate::output::HttpRequestWithGreedyLabelInPathOutput
|
41512 41415 | {
|
41513 41416 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
41514 41417 | match crate::protocol_serde::shape_http_request_with_greedy_label_in_path::ser_http_request_with_greedy_label_in_path_http_response(self) {
|
41515 41418 | Ok(response) => response,
|
41516 41419 | Err(e) => {
|
41517 41420 | ::tracing::error!(error = %e, "failed to serialize response");
|
41518 41421 | ::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))
|
41519 41422 | }
|
41520 41423 | }
|
41521 41424 | }
|
41522 41425 | }
|
@@ -41615,41518 +41675,41577 @@
41615 41518 | this.inner.as_mut().poll(cx)
|
41616 41519 | }
|
41617 41520 | }
|
41618 41521 |
|
41619 41522 | impl<B>
|
41620 41523 | ::aws_smithy_http_server::request::FromRequest<
|
41621 41524 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41622 41525 | B,
|
41623 41526 | > for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
41624 41527 | where
|
41625 41528 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
41626 41529 | B: 'static,
|
41627 41530 |
|
41628 41531 | B::Data: Send,
|
41629 41532 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
41630 41533 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
41631 41534 | {
|
41632 41535 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
41633 41536 | type Future = HttpRequestWithLabelsAndTimestampFormatInputFuture;
|
41634 41537 |
|
41635 41538 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
41636 41539 | let fut = async move {
|
41637 41540 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
41638 41541 | request.headers(),
|
41639 41542 | &CONTENT_TYPE_HTTPREQUESTWITHLABELSANDTIMESTAMPFORMAT,
|
41640 41543 | ) {
|
41641 41544 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
41642 41545 | }
|
41643 41546 | crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::de_http_request_with_labels_and_timestamp_format_http_request(request)
|
41644 41547 | .await
|
41645 - | .map_err(Into::into)
|
41646 41548 | };
|
41647 41549 | use ::futures_util::future::TryFutureExt;
|
41648 41550 | let fut = fut.map_err(
|
41649 41551 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
41650 41552 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
41651 41553 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
41652 41554 | e,
|
41653 41555 | )
|
41654 41556 | },
|
41655 41557 | );
|
41656 41558 | HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
41657 41559 | inner: Box::pin(fut),
|
41658 41560 | }
|
41659 41561 | }
|
41660 41562 | }
|
41661 41563 | impl
|
41662 41564 | ::aws_smithy_http_server::response::IntoResponse<
|
41663 41565 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41664 41566 | > for crate::output::HttpRequestWithLabelsAndTimestampFormatOutput
|
41665 41567 | {
|
41666 41568 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
41667 41569 | match crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::ser_http_request_with_labels_and_timestamp_format_http_response(self) {
|
41668 41570 | Ok(response) => response,
|
41669 41571 | Err(e) => {
|
41670 41572 | ::tracing::error!(error = %e, "failed to serialize response");
|
41671 41573 | ::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))
|
41672 41574 | }
|
41673 41575 | }
|
41674 41576 | }
|
41675 41577 | }
|
@@ -41792,41694 +41852,41753 @@
41792 41694 | this.inner.as_mut().poll(cx)
|
41793 41695 | }
|
41794 41696 | }
|
41795 41697 |
|
41796 41698 | impl<B>
|
41797 41699 | ::aws_smithy_http_server::request::FromRequest<
|
41798 41700 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41799 41701 | B,
|
41800 41702 | > for crate::input::HttpRequestWithLabelsInput
|
41801 41703 | where
|
41802 41704 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
41803 41705 | B: 'static,
|
41804 41706 |
|
41805 41707 | B::Data: Send,
|
41806 41708 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
41807 41709 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
41808 41710 | {
|
41809 41711 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
41810 41712 | type Future = HttpRequestWithLabelsInputFuture;
|
41811 41713 |
|
41812 41714 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
41813 41715 | let fut = async move {
|
41814 41716 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
41815 41717 | request.headers(),
|
41816 41718 | &CONTENT_TYPE_HTTPREQUESTWITHLABELS,
|
41817 41719 | ) {
|
41818 41720 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
41819 41721 | }
|
41820 41722 | crate::protocol_serde::shape_http_request_with_labels::de_http_request_with_labels_http_request(request)
|
41821 41723 | .await
|
41822 - | .map_err(Into::into)
|
41823 41724 | };
|
41824 41725 | use ::futures_util::future::TryFutureExt;
|
41825 41726 | let fut = fut.map_err(
|
41826 41727 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
41827 41728 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
41828 41729 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
41829 41730 | e,
|
41830 41731 | )
|
41831 41732 | },
|
41832 41733 | );
|
41833 41734 | HttpRequestWithLabelsInputFuture {
|
41834 41735 | inner: Box::pin(fut),
|
41835 41736 | }
|
41836 41737 | }
|
41837 41738 | }
|
41838 41739 | impl
|
41839 41740 | ::aws_smithy_http_server::response::IntoResponse<
|
41840 41741 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
41841 41742 | > for crate::output::HttpRequestWithLabelsOutput
|
41842 41743 | {
|
41843 41744 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
41844 41745 | match crate::protocol_serde::shape_http_request_with_labels::ser_http_request_with_labels_http_response(self) {
|
41845 41746 | Ok(response) => response,
|
41846 41747 | Err(e) => {
|
41847 41748 | ::tracing::error!(error = %e, "failed to serialize response");
|
41848 41749 | ::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))
|
41849 41750 | }
|
41850 41751 | }
|
41851 41752 | }
|
41852 41753 | }
|
@@ -42089,41990 +42149,42049 @@
42089 41990 | }
|
42090 41991 |
|
42091 41992 | impl<B>
|
42092 41993 | ::aws_smithy_http_server::request::FromRequest<
|
42093 41994 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42094 41995 | B,
|
42095 41996 | > for crate::input::MediaTypeHeaderInput
|
42096 41997 | where
|
42097 41998 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
42098 41999 | B: 'static,
|
42099 42000 |
|
42100 42001 | B::Data: Send,
|
42101 42002 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
42102 42003 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42103 42004 | {
|
42104 42005 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
42105 42006 | type Future = MediaTypeHeaderInputFuture;
|
42106 42007 |
|
42107 42008 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
42108 42009 | let fut = async move {
|
42109 42010 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
42110 42011 | request.headers(),
|
42111 42012 | &CONTENT_TYPE_MEDIATYPEHEADER,
|
42112 42013 | ) {
|
42113 42014 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
42114 42015 | }
|
42115 42016 | crate::protocol_serde::shape_media_type_header::de_media_type_header_http_request(
|
42116 42017 | request,
|
42117 42018 | )
|
42118 42019 | .await
|
42119 - | .map_err(Into::into)
|
42120 42020 | };
|
42121 42021 | use ::futures_util::future::TryFutureExt;
|
42122 42022 | let fut = fut.map_err(
|
42123 42023 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
42124 42024 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
42125 42025 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
42126 42026 | e,
|
42127 42027 | )
|
42128 42028 | },
|
42129 42029 | );
|
42130 42030 | MediaTypeHeaderInputFuture {
|
42131 42031 | inner: Box::pin(fut),
|
42132 42032 | }
|
42133 42033 | }
|
42134 42034 | }
|
42135 42035 | impl
|
42136 42036 | ::aws_smithy_http_server::response::IntoResponse<
|
42137 42037 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42138 42038 | > for crate::output::MediaTypeHeaderOutput
|
42139 42039 | {
|
42140 42040 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
42141 42041 | match crate::protocol_serde::shape_media_type_header::ser_media_type_header_http_response(
|
42142 42042 | self,
|
42143 42043 | ) {
|
42144 42044 | Ok(response) => response,
|
42145 42045 | Err(e) => {
|
42146 42046 | ::tracing::error!(error = %e, "failed to serialize response");
|
42147 42047 | ::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))
|
42148 42048 | }
|
42149 42049 | }
|
@@ -42247,42147 +42307,42206 @@
42247 42147 | this.inner.as_mut().poll(cx)
|
42248 42148 | }
|
42249 42149 | }
|
42250 42150 |
|
42251 42151 | impl<B>
|
42252 42152 | ::aws_smithy_http_server::request::FromRequest<
|
42253 42153 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42254 42154 | B,
|
42255 42155 | > for crate::input::TimestampFormatHeadersInput
|
42256 42156 | where
|
42257 42157 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
42258 42158 | B: 'static,
|
42259 42159 |
|
42260 42160 | B::Data: Send,
|
42261 42161 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
42262 42162 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42263 42163 | {
|
42264 42164 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
42265 42165 | type Future = TimestampFormatHeadersInputFuture;
|
42266 42166 |
|
42267 42167 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
42268 42168 | let fut = async move {
|
42269 42169 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
42270 42170 | request.headers(),
|
42271 42171 | &CONTENT_TYPE_TIMESTAMPFORMATHEADERS,
|
42272 42172 | ) {
|
42273 42173 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
42274 42174 | }
|
42275 42175 | crate::protocol_serde::shape_timestamp_format_headers::de_timestamp_format_headers_http_request(request)
|
42276 42176 | .await
|
42277 - | .map_err(Into::into)
|
42278 42177 | };
|
42279 42178 | use ::futures_util::future::TryFutureExt;
|
42280 42179 | let fut = fut.map_err(
|
42281 42180 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
42282 42181 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
42283 42182 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
42284 42183 | e,
|
42285 42184 | )
|
42286 42185 | },
|
42287 42186 | );
|
42288 42187 | TimestampFormatHeadersInputFuture {
|
42289 42188 | inner: Box::pin(fut),
|
42290 42189 | }
|
42291 42190 | }
|
42292 42191 | }
|
42293 42192 | impl
|
42294 42193 | ::aws_smithy_http_server::response::IntoResponse<
|
42295 42194 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42296 42195 | > for crate::output::TimestampFormatHeadersOutput
|
42297 42196 | {
|
42298 42197 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
42299 42198 | match crate::protocol_serde::shape_timestamp_format_headers::ser_timestamp_format_headers_http_response(self) {
|
42300 42199 | Ok(response) => response,
|
42301 42200 | Err(e) => {
|
42302 42201 | ::tracing::error!(error = %e, "failed to serialize response");
|
42303 42202 | ::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))
|
42304 42203 | }
|
42305 42204 | }
|
42306 42205 | }
|
42307 42206 | }
|
@@ -42477,42376 +42537,42435 @@
42477 42376 | this.inner.as_mut().poll(cx)
|
42478 42377 | }
|
42479 42378 | }
|
42480 42379 |
|
42481 42380 | impl<B>
|
42482 42381 | ::aws_smithy_http_server::request::FromRequest<
|
42483 42382 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42484 42383 | B,
|
42485 42384 | > for crate::input::NullAndEmptyHeadersServerInput
|
42486 42385 | where
|
42487 42386 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
42488 42387 | B: 'static,
|
42489 42388 |
|
42490 42389 | B::Data: Send,
|
42491 42390 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
42492 42391 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42493 42392 | {
|
42494 42393 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
42495 42394 | type Future = NullAndEmptyHeadersServerInputFuture;
|
42496 42395 |
|
42497 42396 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
42498 42397 | let fut = async move {
|
42499 42398 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
42500 42399 | request.headers(),
|
42501 42400 | &CONTENT_TYPE_NULLANDEMPTYHEADERSSERVER,
|
42502 42401 | ) {
|
42503 42402 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
42504 42403 | }
|
42505 42404 | crate::protocol_serde::shape_null_and_empty_headers_server::de_null_and_empty_headers_server_http_request(request)
|
42506 42405 | .await
|
42507 - | .map_err(Into::into)
|
42508 42406 | };
|
42509 42407 | use ::futures_util::future::TryFutureExt;
|
42510 42408 | let fut = fut.map_err(
|
42511 42409 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
42512 42410 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
42513 42411 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
42514 42412 | e,
|
42515 42413 | )
|
42516 42414 | },
|
42517 42415 | );
|
42518 42416 | NullAndEmptyHeadersServerInputFuture {
|
42519 42417 | inner: Box::pin(fut),
|
42520 42418 | }
|
42521 42419 | }
|
42522 42420 | }
|
42523 42421 | impl
|
42524 42422 | ::aws_smithy_http_server::response::IntoResponse<
|
42525 42423 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42526 42424 | > for crate::output::NullAndEmptyHeadersServerOutput
|
42527 42425 | {
|
42528 42426 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
42529 42427 | match crate::protocol_serde::shape_null_and_empty_headers_server::ser_null_and_empty_headers_server_http_response(self) {
|
42530 42428 | Ok(response) => response,
|
42531 42429 | Err(e) => {
|
42532 42430 | ::tracing::error!(error = %e, "failed to serialize response");
|
42533 42431 | ::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))
|
42534 42432 | }
|
42535 42433 | }
|
42536 42434 | }
|
42537 42435 | }
|
@@ -42587,42485 +42647,42544 @@
42587 42485 | this.inner.as_mut().poll(cx)
|
42588 42486 | }
|
42589 42487 | }
|
42590 42488 |
|
42591 42489 | impl<B>
|
42592 42490 | ::aws_smithy_http_server::request::FromRequest<
|
42593 42491 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42594 42492 | B,
|
42595 42493 | > for crate::input::NullAndEmptyHeadersClientInput
|
42596 42494 | where
|
42597 42495 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
42598 42496 | B: 'static,
|
42599 42497 |
|
42600 42498 | B::Data: Send,
|
42601 42499 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
42602 42500 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42603 42501 | {
|
42604 42502 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
42605 42503 | type Future = NullAndEmptyHeadersClientInputFuture;
|
42606 42504 |
|
42607 42505 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
42608 42506 | let fut = async move {
|
42609 42507 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
42610 42508 | request.headers(),
|
42611 42509 | &CONTENT_TYPE_NULLANDEMPTYHEADERSCLIENT,
|
42612 42510 | ) {
|
42613 42511 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
42614 42512 | }
|
42615 42513 | crate::protocol_serde::shape_null_and_empty_headers_client::de_null_and_empty_headers_client_http_request(request)
|
42616 42514 | .await
|
42617 - | .map_err(Into::into)
|
42618 42515 | };
|
42619 42516 | use ::futures_util::future::TryFutureExt;
|
42620 42517 | let fut = fut.map_err(
|
42621 42518 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
42622 42519 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
42623 42520 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
42624 42521 | e,
|
42625 42522 | )
|
42626 42523 | },
|
42627 42524 | );
|
42628 42525 | NullAndEmptyHeadersClientInputFuture {
|
42629 42526 | inner: Box::pin(fut),
|
42630 42527 | }
|
42631 42528 | }
|
42632 42529 | }
|
42633 42530 | impl
|
42634 42531 | ::aws_smithy_http_server::response::IntoResponse<
|
42635 42532 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42636 42533 | > for crate::output::NullAndEmptyHeadersClientOutput
|
42637 42534 | {
|
42638 42535 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
42639 42536 | match crate::protocol_serde::shape_null_and_empty_headers_client::ser_null_and_empty_headers_client_http_response(self) {
|
42640 42537 | Ok(response) => response,
|
42641 42538 | Err(e) => {
|
42642 42539 | ::tracing::error!(error = %e, "failed to serialize response");
|
42643 42540 | ::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))
|
42644 42541 | }
|
42645 42542 | }
|
42646 42543 | }
|
42647 42544 | }
|
@@ -42669,42566 +42729,42625 @@
42669 42566 | this.inner.as_mut().poll(cx)
|
42670 42567 | }
|
42671 42568 | }
|
42672 42569 |
|
42673 42570 | impl<B>
|
42674 42571 | ::aws_smithy_http_server::request::FromRequest<
|
42675 42572 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42676 42573 | B,
|
42677 42574 | > for crate::input::InputAndOutputWithHeadersInput
|
42678 42575 | where
|
42679 42576 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
42680 42577 | B: 'static,
|
42681 42578 |
|
42682 42579 | B::Data: Send,
|
42683 42580 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
42684 42581 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42685 42582 | {
|
42686 42583 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
42687 42584 | type Future = InputAndOutputWithHeadersInputFuture;
|
42688 42585 |
|
42689 42586 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
42690 42587 | let fut = async move {
|
42691 42588 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
42692 42589 | request.headers(),
|
42693 42590 | &CONTENT_TYPE_INPUTANDOUTPUTWITHHEADERS,
|
42694 42591 | ) {
|
42695 42592 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
42696 42593 | }
|
42697 42594 | crate::protocol_serde::shape_input_and_output_with_headers::de_input_and_output_with_headers_http_request(request)
|
42698 42595 | .await
|
42699 - | .map_err(Into::into)
|
42700 42596 | };
|
42701 42597 | use ::futures_util::future::TryFutureExt;
|
42702 42598 | let fut = fut.map_err(
|
42703 42599 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
42704 42600 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
42705 42601 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
42706 42602 | e,
|
42707 42603 | )
|
42708 42604 | },
|
42709 42605 | );
|
42710 42606 | InputAndOutputWithHeadersInputFuture {
|
42711 42607 | inner: Box::pin(fut),
|
42712 42608 | }
|
42713 42609 | }
|
42714 42610 | }
|
42715 42611 | impl
|
42716 42612 | ::aws_smithy_http_server::response::IntoResponse<
|
42717 42613 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
42718 42614 | > for crate::output::InputAndOutputWithHeadersOutput
|
42719 42615 | {
|
42720 42616 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
42721 42617 | match crate::protocol_serde::shape_input_and_output_with_headers::ser_input_and_output_with_headers_http_response(self) {
|
42722 42618 | Ok(response) => response,
|
42723 42619 | Err(e) => {
|
42724 42620 | ::tracing::error!(error = %e, "failed to serialize response");
|
42725 42621 | ::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))
|
42726 42622 | }
|
42727 42623 | }
|
42728 42624 | }
|
42729 42625 | }
|
@@ -45047,44943 +45107,45002 @@
45047 44943 | this.inner.as_mut().poll(cx)
|
45048 44944 | }
|
45049 44945 | }
|
45050 44946 |
|
45051 44947 | impl<B>
|
45052 44948 | ::aws_smithy_http_server::request::FromRequest<
|
45053 44949 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45054 44950 | B,
|
45055 44951 | > for crate::input::UnitInputAndOutputInput
|
45056 44952 | where
|
45057 44953 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
45058 44954 | B: 'static,
|
45059 44955 |
|
45060 44956 | B::Data: Send,
|
45061 44957 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
45062 44958 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
45063 44959 | {
|
45064 44960 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
45065 44961 | type Future = UnitInputAndOutputInputFuture;
|
45066 44962 |
|
45067 44963 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
45068 44964 | let fut = async move {
|
45069 44965 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45070 44966 | request.headers(),
|
45071 44967 | &CONTENT_TYPE_UNITINPUTANDOUTPUT,
|
45072 44968 | ) {
|
45073 44969 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
45074 44970 | }
|
45075 44971 | crate::protocol_serde::shape_unit_input_and_output::de_unit_input_and_output_http_request(request)
|
45076 44972 | .await
|
45077 - | .map_err(Into::into)
|
45078 44973 | };
|
45079 44974 | use ::futures_util::future::TryFutureExt;
|
45080 44975 | let fut = fut.map_err(
|
45081 44976 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
45082 44977 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
45083 44978 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
45084 44979 | e,
|
45085 44980 | )
|
45086 44981 | },
|
45087 44982 | );
|
45088 44983 | UnitInputAndOutputInputFuture {
|
45089 44984 | inner: Box::pin(fut),
|
45090 44985 | }
|
45091 44986 | }
|
45092 44987 | }
|
45093 44988 | impl
|
45094 44989 | ::aws_smithy_http_server::response::IntoResponse<
|
45095 44990 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45096 44991 | > for crate::output::UnitInputAndOutputOutput
|
45097 44992 | {
|
45098 44993 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
45099 44994 | match crate::protocol_serde::shape_unit_input_and_output::ser_unit_input_and_output_http_response(self) {
|
45100 44995 | Ok(response) => response,
|
45101 44996 | Err(e) => {
|
45102 44997 | ::tracing::error!(error = %e, "failed to serialize response");
|
45103 44998 | ::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))
|
45104 44999 | }
|
45105 45000 | }
|
45106 45001 | }
|
45107 45002 | }
|
@@ -45245,45140 +45305,45199 @@
45245 45140 | this.inner.as_mut().poll(cx)
|
45246 45141 | }
|
45247 45142 | }
|
45248 45143 |
|
45249 45144 | impl<B>
|
45250 45145 | ::aws_smithy_http_server::request::FromRequest<
|
45251 45146 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45252 45147 | B,
|
45253 45148 | > for crate::input::EmptyInputAndEmptyOutputInput
|
45254 45149 | where
|
45255 45150 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
45256 45151 | B: 'static,
|
45257 45152 |
|
45258 45153 | B::Data: Send,
|
45259 45154 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
45260 45155 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
45261 45156 | {
|
45262 45157 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
45263 45158 | type Future = EmptyInputAndEmptyOutputInputFuture;
|
45264 45159 |
|
45265 45160 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
45266 45161 | let fut = async move {
|
45267 45162 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45268 45163 | request.headers(),
|
45269 45164 | &CONTENT_TYPE_EMPTYINPUTANDEMPTYOUTPUT,
|
45270 45165 | ) {
|
45271 45166 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
45272 45167 | }
|
45273 45168 | crate::protocol_serde::shape_empty_input_and_empty_output::de_empty_input_and_empty_output_http_request(request)
|
45274 45169 | .await
|
45275 - | .map_err(Into::into)
|
45276 45170 | };
|
45277 45171 | use ::futures_util::future::TryFutureExt;
|
45278 45172 | let fut = fut.map_err(
|
45279 45173 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
45280 45174 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
45281 45175 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
45282 45176 | e,
|
45283 45177 | )
|
45284 45178 | },
|
45285 45179 | );
|
45286 45180 | EmptyInputAndEmptyOutputInputFuture {
|
45287 45181 | inner: Box::pin(fut),
|
45288 45182 | }
|
45289 45183 | }
|
45290 45184 | }
|
45291 45185 | impl
|
45292 45186 | ::aws_smithy_http_server::response::IntoResponse<
|
45293 45187 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45294 45188 | > for crate::output::EmptyInputAndEmptyOutputOutput
|
45295 45189 | {
|
45296 45190 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
45297 45191 | match crate::protocol_serde::shape_empty_input_and_empty_output::ser_empty_input_and_empty_output_http_response(self) {
|
45298 45192 | Ok(response) => response,
|
45299 45193 | Err(e) => {
|
45300 45194 | ::tracing::error!(error = %e, "failed to serialize response");
|
45301 45195 | ::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))
|
45302 45196 | }
|
45303 45197 | }
|
45304 45198 | }
|
45305 45199 | }
|
@@ -45457,45351 +45517,45410 @@
45457 45351 | }
|
45458 45352 |
|
45459 45353 | impl<B>
|
45460 45354 | ::aws_smithy_http_server::request::FromRequest<
|
45461 45355 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45462 45356 | B,
|
45463 45357 | > for crate::input::NoInputAndOutputInput
|
45464 45358 | where
|
45465 45359 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
45466 45360 | B: 'static,
|
45467 45361 |
|
45468 45362 | B::Data: Send,
|
45469 45363 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
45470 45364 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
45471 45365 | {
|
45472 45366 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
45473 45367 | type Future = NoInputAndOutputInputFuture;
|
45474 45368 |
|
45475 45369 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
45476 45370 | let fut = async move {
|
45477 45371 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45478 45372 | request.headers(),
|
45479 45373 | &CONTENT_TYPE_NOINPUTANDOUTPUT,
|
45480 45374 | ) {
|
45481 45375 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
45482 45376 | }
|
45483 45377 | crate::protocol_serde::shape_no_input_and_output::de_no_input_and_output_http_request(
|
45484 45378 | request,
|
45485 45379 | )
|
45486 45380 | .await
|
45487 - | .map_err(Into::into)
|
45488 45381 | };
|
45489 45382 | use ::futures_util::future::TryFutureExt;
|
45490 45383 | let fut = fut.map_err(
|
45491 45384 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
45492 45385 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
45493 45386 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
45494 45387 | e,
|
45495 45388 | )
|
45496 45389 | },
|
45497 45390 | );
|
45498 45391 | NoInputAndOutputInputFuture {
|
45499 45392 | inner: Box::pin(fut),
|
45500 45393 | }
|
45501 45394 | }
|
45502 45395 | }
|
45503 45396 | impl
|
45504 45397 | ::aws_smithy_http_server::response::IntoResponse<
|
45505 45398 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45506 45399 | > for crate::output::NoInputAndOutputOutput
|
45507 45400 | {
|
45508 45401 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
45509 45402 | match crate::protocol_serde::shape_no_input_and_output::ser_no_input_and_output_http_response(self) {
|
45510 45403 | Ok(response) => response,
|
45511 45404 | Err(e) => {
|
45512 45405 | ::tracing::error!(error = %e, "failed to serialize response");
|
45513 45406 | ::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))
|
45514 45407 | }
|
45515 45408 | }
|
45516 45409 | }
|
45517 45410 | }
|
@@ -45662,45555 +45722,45614 @@
45662 45555 | this.inner.as_mut().poll(cx)
|
45663 45556 | }
|
45664 45557 | }
|
45665 45558 |
|
45666 45559 | impl<B>
|
45667 45560 | ::aws_smithy_http_server::request::FromRequest<
|
45668 45561 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45669 45562 | B,
|
45670 45563 | > for crate::input::NoInputAndNoOutputInput
|
45671 45564 | where
|
45672 45565 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
45673 45566 | B: 'static,
|
45674 45567 |
|
45675 45568 | B::Data: Send,
|
45676 45569 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
45677 45570 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
45678 45571 | {
|
45679 45572 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
45680 45573 | type Future = NoInputAndNoOutputInputFuture;
|
45681 45574 |
|
45682 45575 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
45683 45576 | let fut = async move {
|
45684 45577 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45685 45578 | request.headers(),
|
45686 45579 | &CONTENT_TYPE_NOINPUTANDNOOUTPUT,
|
45687 45580 | ) {
|
45688 45581 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
45689 45582 | }
|
45690 45583 | crate::protocol_serde::shape_no_input_and_no_output::de_no_input_and_no_output_http_request(request)
|
45691 45584 | .await
|
45692 - | .map_err(Into::into)
|
45693 45585 | };
|
45694 45586 | use ::futures_util::future::TryFutureExt;
|
45695 45587 | let fut = fut.map_err(
|
45696 45588 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
45697 45589 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
45698 45590 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
45699 45591 | e,
|
45700 45592 | )
|
45701 45593 | },
|
45702 45594 | );
|
45703 45595 | NoInputAndNoOutputInputFuture {
|
45704 45596 | inner: Box::pin(fut),
|
45705 45597 | }
|
45706 45598 | }
|
45707 45599 | }
|
45708 45600 | impl
|
45709 45601 | ::aws_smithy_http_server::response::IntoResponse<
|
45710 45602 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
45711 45603 | > for crate::output::NoInputAndNoOutputOutput
|
45712 45604 | {
|
45713 45605 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
45714 45606 | match crate::protocol_serde::shape_no_input_and_no_output::ser_no_input_and_no_output_http_response(self) {
|
45715 45607 | Ok(response) => response,
|
45716 45608 | Err(e) => {
|
45717 45609 | ::tracing::error!(error = %e, "failed to serialize response");
|
45718 45610 | ::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))
|
45719 45611 | }
|
45720 45612 | }
|
45721 45613 | }
|
45722 45614 | }
|