Skip to content

Allow callers to inject custom interceptors while using the AWSClient #3817

@Gintoki0149

Description

@Gintoki0149

Describe the feature

Currently, the AWSClient class has a private vector of Interceptors. This vector is hardcoded and there is no way to mutate it. Will it be possible to have an AddInterceptors/SetInterceptors where we can supply a vector of interceptors that will be added to this m_interceptors vector?
This will allow callers to add middleware to the existing clients cleanly.

Use Case

This feature can help in adding custom middleware while communicating with AWS.
For e.g. I am adding custom headers to the response being sent by S3 and having an interceptors would allow me to access the http response in my custom interceptor.

Proposed Solution

No response

Other Information

This feature request is based on this discussion: #3813

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions