239 239 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
240 240 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
241 241 | let input = input
|
242 242 | .downcast::<crate::operation::delete_objects::DeleteObjectsInput>()
|
243 243 | .expect("correct type");
|
244 244 | let _header_serialization_settings = _cfg
|
245 245 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
246 246 | .cloned()
|
247 247 | .unwrap_or_default();
|
248 248 | let mut request_builder = {
|
249 249 | #[allow(clippy::uninlined_format_args)]
|
250 250 | fn uri_base(
|
251 251 | _input: &crate::operation::delete_objects::DeleteObjectsInput,
|
252 252 | output: &mut ::std::string::String,
|
253 253 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
254 254 | use ::std::fmt::Write as _;
|
255 255 | ::std::write!(output, "/").expect("formatting should succeed");
|
256 256 | ::std::result::Result::Ok(())
|
257 257 | }
|
258 258 | fn uri_query(
|
259 259 | _input: &crate::operation::delete_objects::DeleteObjectsInput,
|
260 260 | mut output: &mut ::std::string::String,
|
261 261 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
262 262 | let mut query = ::aws_smithy_http::query::Writer::new(output);
|
263 263 | query.push_v("delete");
|
264 264 | ::std::result::Result::Ok(())
|
265 265 | }
|
266 266 | #[allow(clippy::unnecessary_wraps)]
|
267 267 | fn update_http_builder(
|
268 268 | input: &crate::operation::delete_objects::DeleteObjectsInput,
|
269 - | builder: ::http::request::Builder,
|
270 - | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
269 + | builder: ::http_1x::request::Builder,
|
270 + | ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
271 271 | let mut uri = ::std::string::String::new();
|
272 272 | uri_base(input, &mut uri)?;
|
273 273 | uri_query(input, &mut uri)?;
|
274 274 | let builder = crate::protocol_serde::shape_delete_objects::ser_delete_objects_headers(input, builder)?;
|
275 275 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
276 276 | }
|
277 - | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
278 - | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
|
277 + | let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
|
278 + | builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
|
279 279 | builder
|
280 280 | };
|
281 281 | let body =
|
282 282 | ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_delete_objects_input::ser_delete_http_payload(&input.delete)?);
|
283 283 | if let Some(content_length) = body.content_length() {
|
284 284 | let content_length = content_length.to_string();
|
285 - | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
285 + | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
|
286 286 | }
|
287 287 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
288 288 | }
|
289 289 | }
|
290 290 | #[derive(Debug)]
|
291 291 | struct DeleteObjectsEndpointParamsInterceptor;
|
292 292 |
|
293 293 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteObjectsEndpointParamsInterceptor {
|
294 294 | fn name(&self) -> &'static str {
|
295 295 | "DeleteObjectsEndpointParamsInterceptor"
|
296 296 | }
|
297 297 |
|
298 298 | fn read_before_execution(
|
299 299 | &self,
|
300 300 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
301 301 | '_,
|
302 302 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
303 303 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
304 304 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
305 305 | >,
|
306 306 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
307 307 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
308 308 | let _input = context
|
309 309 | .input()
|
310 310 | .downcast_ref::<DeleteObjectsInput>()
|
311 311 | .ok_or("failed to downcast to DeleteObjectsInput")?;
|
312 312 |
|
313 313 | let params = crate::config::endpoint::Params::builder()
|
314 314 | .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
|
315 315 | .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
|