Expand description

Operation customization and supporting types.

The underlying HTTP requests made during an operation can be customized by calling the customize() method on the builder returned from a client operation call. For example, this can be used to add an additional HTTP header:

use ::http::header::{HeaderName, HeaderValue};

let result = client.abort_multipart_upload()
    .customize()
    .await?
    .mutate_request(|req| {
        // Add `x-example-header` with value
        req.headers_mut()
            .insert(
                HeaderName::from_static("x-example-header"),
                HeaderValue::from_static("1"),
            );
    })
    .send()
    .await;

Modules

  • Module for defining types for CustomizableOperation in the orchestrator