-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for configuring interceptors on generic client #2697
Allow for configuring interceptors on generic client #2697
Commits on May 3, 2023
-
Add newtypes for a shared interceptor and its collection
This commit adds newtypes `SharedInterceptor` and `AddOnlyInterceptors` around existing types so that they can be used outside of their defining crates without revealing the implementation details.
Configuration menu - View commit details
-
Copy full SHA for 9d0e481 - Browse repository at this point
Copy the full SHA 9d0e481View commit details -
Configure interceptors in
ConfigLoader
andSdkConfig
This commit allows users to pass their own interceptors to `ConfigLoader` and to `SdkConfig`. The docs for their methods are marked as `#[doc(hidden)]` until the orchestrator is fully functional.
Configuration menu - View commit details
-
Copy full SHA for 97f0f0c - Browse repository at this point
Copy the full SHA 97f0f0cView commit details -
Generate code for registering user interceptors
This commit updates the codegen to register user-passed-in interceptors. Registration takes place at the client config level and the operation config level. The former is handled in `ServiceRuntimePlugin` and the latter in service config `Builder`.
Configuration menu - View commit details
-
Copy full SHA for d9d93fe - Browse repository at this point
Copy the full SHA d9d93feView commit details -
Add tests to verify configuring interceptors
This commit updates `sra_test` to verify interceptors can be configured at the client config level. It also adds a test to ensure interceptors registered run according to the pre-defined priority.
Configuration menu - View commit details
-
Copy full SHA for 85c313a - Browse repository at this point
Copy the full SHA 85c313aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb62dd3 - Browse repository at this point
Copy the full SHA fb62dd3View commit details
Commits on May 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b4d9054 - Browse repository at this point
Copy the full SHA b4d9054View commit details -
Update aws/rust-runtime/aws-config/src/lib.rs
Co-authored-by: John DiSanti <jdisanti@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for ac1c69c - Browse repository at this point
Copy the full SHA ac1c69cView commit details -
Update aws/rust-runtime/aws-config/src/lib.rs
Co-authored-by: John DiSanti <jdisanti@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 4d3d390 - Browse repository at this point
Copy the full SHA 4d3d390View commit details -
Update aws/rust-runtime/aws-config/src/lib.rs
Co-authored-by: John DiSanti <jdisanti@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 462a355 - Browse repository at this point
Copy the full SHA 462a355View commit details -
Update codegen-client/src/main/kotlin/software/amazon/smithy/rust/cod…
…egen/client/smithy/customizations/InterceptorConfigCustomization.kt Co-authored-by: John DiSanti <jdisanti@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for f011bd9 - Browse repository at this point
Copy the full SHA f011bd9View commit details -
Update codegen-client/src/main/kotlin/software/amazon/smithy/rust/cod…
…egen/client/smithy/customizations/InterceptorConfigCustomization.kt Co-authored-by: John DiSanti <jdisanti@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 1baba61 - Browse repository at this point
Copy the full SHA 1baba61View commit details -
Update codegen-client/src/main/kotlin/software/amazon/smithy/rust/cod…
…egen/client/smithy/generators/config/ServiceConfigGenerator.kt Co-authored-by: John DiSanti <jdisanti@amazon.com>
Configuration menu - View commit details
-
Copy full SHA for 2c9167d - Browse repository at this point
Copy the full SHA 2c9167dView commit details -
Merge branch 'ysaito/configure-interceptors-at-various-levels' of htt…
…ps://github.com/awslabs/smithy-rs into ysaito/configure-interceptors-at-various-levels
Configuration menu - View commit details
-
Copy full SHA for c68c761 - Browse repository at this point
Copy the full SHA c68c761View commit details -
Make the getter
interceptors
#[doc(hidden)]
This commit addresses #2669 (comment)
Configuration menu - View commit details
-
Copy full SHA for 32f7334 - Browse repository at this point
Copy the full SHA 32f7334View commit details -
Configuration menu - View commit details
-
Copy full SHA for da7a306 - Browse repository at this point
Copy the full SHA da7a306View commit details -
Rename
AddOnlyInterceptors
toInterceptorRegistrar
This commit addresses #2669 (comment)
Configuration menu - View commit details
-
Copy full SHA for 8c1fc01 - Browse repository at this point
Copy the full SHA 8c1fc01View commit details -
Rename
set_interceptor
and addset_interceptors
This commit addresses the following discussions: #2669 (comment) #2669 (comment)
Configuration menu - View commit details
-
Copy full SHA for ba26b98 - Browse repository at this point
Copy the full SHA ba26b98View commit details -
Replace doc example with one modifying request URI
This commit addresses the following discussions: #2669 (comment) #2669 (comment)
Configuration menu - View commit details
-
Copy full SHA for 5583680 - Browse repository at this point
Copy the full SHA 5583680View commit details
Commits on May 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 02cdf15 - Browse repository at this point
Copy the full SHA 02cdf15View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8df08b - Browse repository at this point
Copy the full SHA e8df08bView commit details
Commits on May 12, 2023
-
Exclude aws runtime crates from interceptor config
This commit addresses #2669 (comment)
Configuration menu - View commit details
-
Copy full SHA for 1d834d0 - Browse repository at this point
Copy the full SHA 1d834d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9618366 - Browse repository at this point
Copy the full SHA 9618366View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbc3dab - Browse repository at this point
Copy the full SHA bbc3dabView commit details -
This commit addresses #2697 (comment)
Configuration menu - View commit details
-
Copy full SHA for 44af0db - Browse repository at this point
Copy the full SHA 44af0dbView commit details -
Remove
#[allow(dead_code)]
that should be unnecessaryThis commit addresses #2697 (comment)
Configuration menu - View commit details
-
Copy full SHA for 73c3515 - Browse repository at this point
Copy the full SHA 73c3515View commit details -
Update codegen variable name for
InterceptorRegistrar
This commit addresses #2697 (comment)
Configuration menu - View commit details
-
Copy full SHA for 24e176d - Browse repository at this point
Copy the full SHA 24e176dView commit details -
Add the
extend
method toInterceptorRegistrar
This commit incorporates feedback #2697 (comment)
Configuration menu - View commit details
-
Copy full SHA for 9205f49 - Browse repository at this point
Copy the full SHA 9205f49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fff36b - Browse repository at this point
Copy the full SHA 3fff36bView commit details