Module aws_sdk_s3::client::customize
source · 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;
Structs
- An
Operation
is a request paired with a response handler, retry classifier, and metadata that identifies the API being called. - Operation request type that associates a property bag with an underlying HTTP request. This type represents the request in the Tower
Service
in middleware so that middleware can share information with each other via the properties. - Operation response type that associates a property bag with an underlying HTTP response. This type represents the response in the Tower
Service
in middleware so that middleware can share information with each other via the properties.
Enums
RetryKind
describes how a request MAY be retried for a given response
Traits
- Classifies what kind of retry is needed for a given
response
.