185 185 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
186 186 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
187 187 | let input = input
|
188 188 | .downcast::<crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationInput>()
|
189 189 | .expect("correct type");
|
190 190 | let _header_serialization_settings = _cfg
|
191 191 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
192 192 | .cloned()
|
193 193 | .unwrap_or_default();
|
194 194 | let mut request_builder = {
|
195 195 | #[allow(clippy::uninlined_format_args)]
|
196 196 | fn uri_base(
|
197 197 | _input: &crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationInput,
|
198 198 | output: &mut ::std::string::String,
|
199 199 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
200 200 | use ::std::fmt::Write as _;
|
201 201 | ::std::write!(output, "/").expect("formatting should succeed");
|
202 202 | ::std::result::Result::Ok(())
|
203 203 | }
|
204 204 | fn uri_query(
|
205 205 | _input: &crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationInput,
|
206 206 | mut output: &mut ::std::string::String,
|
207 207 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
208 208 | let mut query = ::aws_smithy_http::query::Writer::new(output);
|
209 209 | query.push_v("metadataConfiguration");
|
210 210 | ::std::result::Result::Ok(())
|
211 211 | }
|
212 212 | #[allow(clippy::unnecessary_wraps)]
|
213 213 | fn update_http_builder(
|
214 214 | input: &crate::operation::get_bucket_metadata_configuration::GetBucketMetadataConfigurationInput,
|
215 - | builder: ::http::request::Builder,
|
216 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
215 + | builder: ::http_1x::request::Builder,
|
216 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
217 217 | let mut uri = ::std::string::String::new();
|
218 218 | uri_base(input, &mut uri)?;
|
219 219 | uri_query(input, &mut uri)?;
|
220 220 | let builder =
|
221 221 | crate::protocol_serde::shape_get_bucket_metadata_configuration::ser_get_bucket_metadata_configuration_headers(input, builder)?;
|
222 222 | ::std::result::Result::Ok(builder.method("GET").uri(uri))
|
223 223 | }
|
224 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
224 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
225 225 | builder
|
226 226 | };
|
227 227 | let body = ::aws_smithy_types::body::SdkBody::from("");
|
228 228 |
|
229 229 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
230 230 | }
|
231 231 | }
|
232 232 | #[derive(Debug)]
|
233 233 | struct GetBucketMetadataConfigurationEndpointParamsInterceptor;
|
234 234 |
|
235 235 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetBucketMetadataConfigurationEndpointParamsInterceptor {
|
236 236 | fn name(&self) -> &'static str {
|
237 237 | "GetBucketMetadataConfigurationEndpointParamsInterceptor"
|
238 238 | }
|
239 239 |
|
240 240 | fn read_before_execution(
|
241 241 | &self,
|
242 242 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
243 243 | '_,
|
244 244 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
245 245 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
246 246 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
247 247 | >,
|
248 248 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
249 249 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
250 250 | let _input = context
|
251 251 | .input()
|
252 252 | .downcast_ref::<GetBucketMetadataConfigurationInput>()
|
253 253 | .ok_or("failed to downcast to GetBucketMetadataConfigurationInput")?;
|
254 254 |
|