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.batch_execute_statement()
    .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

  • A wrapper type for Operations that allows for customization of the operation before it is sent. A CustomizableOperation may be sent by calling its .send() method.
  • 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.