id
stringlengths
22
133
text
stringlengths
40
40.2k
arch
stringclasses
1 value
syntax
stringclasses
1 value
kind
stringclasses
4 values
repo
stringclasses
27 values
path
stringlengths
5
116
license
stringclasses
6 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
16 values
source_url
stringlengths
85
196
line_start
int64
1
4.28k
line_end
int64
4
4.31k
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
async fn test_read_after_attempt_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(Some(b\"\")), retryable: true ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
) -> Result<(), BoxError> { tracing::debug!("OriginInterceptor called!"); Err("OriginInterceptor".into()) } } #[derive(Debug)] struct DestinationInterceptor; impl Interceptor for DestinationInterceptor { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
let actual = invoke(input, &runtime_plugins) .await .expect_err("should error"); let actual = format!("{:?}", actual); assert_eq!($expected, format!("{:?}", actual)); assert!(logs_contain("OriginInterceptor called!")); assert!(logs_contain...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"DestinationInterceptor\") } })""#.to_string(); interceptor_error_redirection_test!( read_before_serialization, &BeforeSerializationInterceptorContextRef<'_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
interceptor_error_redirection_test!( read_before_attempt, &BeforeTransmitInterceptorContextRef<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_mo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
read_after_signing, &BeforeTransmitInterceptorContextRef<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_causes_jump_to_modify_b...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
&BeforeDeserializationInterceptorContextRef<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_deserialization_error_causes_jump_to_modify_before_attempt_comp...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
interceptor_error_redirection_test!( read_after_deserialization, &AfterDeserializationInterceptorContextRef<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] asy...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
70dbcefe040758bfaa3cf134d5b39379422fe212
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/70dbcefe040758bfaa3cf134d5b39379422fe212/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
921
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::timeout::{MaybeTimeout, ProvideMay...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
Err(err) => halt!([$ctx] => err), } }; } macro_rules! continue_on_err { ([$ctx:ident] => $expr:expr) => { if let Err(err) = $expr { $ctx.fail(err.into()); } }; } #[tracing::instrument(skip_all)] pub async fn invoke( input: Input, runtime_plugins: &RuntimePlugins...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
/// Apply configuration is responsible for apply runtime plugins to the config bag, as well as running /// `read_before_execution` interceptors. If a failure occurs due to config construction, `invoke` /// will raise it to the user. If an interceptor fails, then `invoke` fn apply_configuration( ctx: &mut Intercepto...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
} // Before transmit ctx.enter_before_transmit_phase(); halt_on_err!([ctx] => interceptors.read_after_serialization(ctx, cfg)); halt_on_err!([ctx] => interceptors.modify_before_retry_loop(ctx, cfg)); let retry_strategy = cfg.retry_strategy(); match retry_strategy.should_attempt_initial_request...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
break; } ShouldAttempt::YesAfterDelay(_delay) => { // TODO(enableNewSmithyRuntime): implement retries with explicit delay todo!("implement retries with an explicit delay.") } } } } async fn try_attempt( ctx: &mut InterceptorContext, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
ctx.enter_deserialization_phase(); let output_or_error = async { let response = ctx.response_mut(); let response_deserializer = cfg.response_deserializer(); match response_deserializer.deserialize_streaming(response) { Some(output_or_error) => Ok(output_or_error), Non...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
use super::invoke; use crate::client::orchestrator::endpoints::{ StaticUriEndpointResolver, StaticUriEndpointResolverParams, }; use crate::client::retries::strategy::NeverRetryStrategy; use crate::client::runtime_plugin::anonymous_auth::AnonymousAuthRuntimePlugin; use crate::client::test_uti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
CannedResponseDeserializer::new( http::Response::builder() .status(StatusCode::OK) .body(SdkBody::empty()) .map_err(|err| OrchestratorError::other(Box::new(err))) .map(|res| Output::new(Box::new(res))), ) } #[derive(Debug)] ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
#[derive(Debug)] struct FailingInterceptorB; impl Interceptor for FailingInterceptorB { fn $interceptor(&self, _ctx: $ctx, _cfg: &mut ConfigBag) -> Result<(), BoxError> { tracing::debug!("FailingInterceptorB called!"); Err("FailingIntercept...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
interceptors: &mut InterceptorRegistrar, ) -> Result<(), BoxError> { interceptors.register(SharedInterceptor::new(FailingInterceptorB)); interceptors.register(SharedInterceptor::new(FailingInterceptorC)); Ok(()) } }...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
async fn test_modify_before_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeSerialization, source: Some(\"FailingInterceptorC\") } })""#.to_string(); interceptor_error_handling_test!( modify_before_ser...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
} #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
read_after_signing, &BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), sour...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
#[traced_test] async fn test_modify_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
); } #[tokio::test] #[traced_test] async fn test_read_after_attempt_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
impl Interceptor for OriginInterceptor { fn $origin_interceptor( &self, _ctx: $origin_ctx, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("OriginInterceptor called!"); E...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin) .with_operation_plugin(AnonymousAuthRuntimePlugin) .with_operation_plugin(InterceptorsTestOperationRuntimePlugin); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
#[tokio::test] #[traced_test] async fn test_read_after_deserialization_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\") }, raw: Response ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
06dc9de36c4c611fb925cf3d203e5cee26ce19bb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/06dc9de36c4c611fb925cf3d203e5cee26ce19bb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
886
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::timeout::{MaybeTimeout, ProvideMay...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d72d0378a6716e9a1cf5917d17e3c0f1a1867ddc
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d72d0378a6716e9a1cf5917d17e3c0f1a1867ddc/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
use super::invoke; use crate::client::orchestrator::endpoints::{ StaticUriEndpointResolver, StaticUriEndpointResolverParams, }; use crate::client::retries::strategy::NeverRetryStrategy; use crate::client::runtime_plugin::anonymous_auth::AnonymousAuthRuntimePlugin; use crate::client::test_uti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d72d0378a6716e9a1cf5917d17e3c0f1a1867ddc
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d72d0378a6716e9a1cf5917d17e3c0f1a1867ddc/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
/// Apply configuration is responsible for apply runtime plugins to the config bag, as well as running /// `read_before_execution` interceptors. If a failure occurs due to config construction, `invoke` /// will raise it to the user. If an interceptor fails, then `invoke` fn apply_configuration( ctx: &mut Intercepto...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d579a1949f060dad9e9a4654881a914f525282ab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d579a1949f060dad9e9a4654881a914f525282ab/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::timeout::{MaybeTimeout, ProvideMay...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
} }; } #[tracing::instrument(skip_all)] pub async fn invoke( input: Input, runtime_plugins: &RuntimePlugins, ) -> Result<Output, SdkError<Error, HttpResponse>> { let mut cfg = ConfigBag::base(); let cfg = &mut cfg; let mut interceptors = Interceptors::new(); let mut ctx = InterceptorContex...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
) -> Result<(), BoxError> { runtime_plugins.apply_client_configuration(cfg, interceptors.client_interceptors_mut())?; continue_on_err!([ctx] =>interceptors.client_read_before_execution(ctx, cfg).map_err(Into::into)); runtime_plugins .apply_operation_configuration(cfg, interceptors.operation_intercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
Err(err) => halt_on_err!([ctx] => Err(err.into())), Ok(ShouldAttempt::YesAfterDelay(_)) => { unreachable!("Delaying the initial request is currently unsupported. If this feature is important to you, please file an issue in GitHub.") } } loop { let attempt_timeout_config = cf...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
halt_on_err!([ctx] => interceptors.modify_before_signing(ctx, cfg).map_err(Into::into)); halt_on_err!([ctx] => interceptors.read_before_signing(ctx, cfg).map_err(Into::into)); halt_on_err!([ctx] => orchestrate_auth(ctx, cfg).await.map_err(Into::into)); halt_on_err!([ctx] => interceptors.read_after_signing...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
halt_on_err!([ctx] => interceptors.read_after_deserialization(ctx, cfg).map_err(Into::into)); } async fn finally_attempt( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, interceptors: &Interceptors, ) { continue_on_err!([ctx] => interceptors.modify_before_attempt_completion(ctx, cfg).map_err(Into::i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
BeforeDeserializationInterceptorContextRef, BeforeSerializationInterceptorContextMut, BeforeSerializationInterceptorContextRef, BeforeTransmitInterceptorContextMut, BeforeTransmitInterceptorContextRef, }; use aws_smithy_runtime_api::client::interceptors::{ Interceptor, InterceptorRegistr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
) -> Result<(), BoxError> { cfg.set_request_serializer(new_request_serializer()); cfg.set_response_deserializer(new_response_deserializer()); cfg.set_retry_strategy(NeverRetryStrategy::new()); cfg.set_endpoint_resolver(StaticUriEndpointResolver::http_localhost(8080)); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
#[derive(Debug)] struct FailingInterceptorsClientRuntimePlugin; impl RuntimePlugin for FailingInterceptorsClientRuntimePlugin { fn configure( &self, _cfg: &mut ConfigBag, interceptors: &mut InterceptorRegistrar, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
.expect_err("should error"); let actual = format!("{:?}", actual); assert_eq!($expected, format!("{:?}", actual)); assert!(logs_contain("FailingInterceptorA called!")); assert!(logs_contain("FailingInterceptorB called!")); assert!(logs_contain("FailingInterce...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
); } #[tokio::test] #[traced_test] async fn test_read_after_serialization_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadAfterSerialization, source: Some(\"FailingInterceptorC\") }, connect...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
interceptor_error_handling_test!( modify_before_signing, &mut BeforeTransmitInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_signing_error_handling() { let expected = r#""DispatchFailure(DispatchFailure ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
#[tokio::test] #[traced_test] async fn test_read_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeTransmit, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.t...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
expected ); } #[tokio::test] #[traced_test] async fn test_read_after_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, versi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(Some(b\"\")), retryable: true } } })""#.to_string(); interceptor_error_handl...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
_cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("DestinationInterceptor called!"); Err("DestinationInterceptor".into()) } } #[derive(Debug)] struct InterceptorsTestOperationRuntimePlugin; ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"DestinationInterceptor\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(Some(b\"\")), retryable: true } } })""#.to_string(); interceptor_error_redirect...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
f76ccb3a8534c5a903b6927d925e2ea966e60bd5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/f76ccb3a8534c5a903b6927d925e2ea966e60bd5/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
869
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::timeout::{MaybeTimeout, ProvideMay...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
Ok(ok) => ok, Err(err) => { use aws_smithy_runtime_api::client::interceptors::context::phase::Phase; let (_input, output_or_error, _request, response, phase) = $ctx.into_parts(); return Err(phase.convert_error(err.into(), output_or_error, response)); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
handle_err!(context => interceptors.operation_read_before_execution(&context, cfg)); let operation_timeout_config = cfg.maybe_timeout_config(TimeoutKind::Operation); invoke_post_config(cfg, context, interceptors) .maybe_timeout_with_config(operation_timeout_config) .await } async fn invoke_pos...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
// No, we shouldn't make a request because... Err(err) => bail!(before_transmit, err), Ok(ShouldAttempt::YesAfterDelay(_)) => { unreachable!("Delaying the initial request is currently unsupported. If this feature is important to you, please file an issue in GitHub.") ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
checkpoint.finalize() } // Making an HTTP request can fail for several reasons, but we still need to // call lifecycle events when that happens. Therefore, we define this // `make_an_attempt` function to make error handling simpler. #[tracing::instrument(skip_all)] async fn make_an_attempt( mut checkpoint: Attempt...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
let response = checkpoint.deser().response_mut(); let response_deserializer = cfg.response_deserializer(); match response_deserializer.deserialize_streaming(response) { Some(output_or_error) => Ok(output_or_error), None => read_body(response) .instrument(debug_spa...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
use aws_smithy_runtime_api::client::runtime_plugin::{BoxError, RuntimePlugin, RuntimePlugins}; use aws_smithy_runtime_api::config_bag::ConfigBag; use aws_smithy_runtime_api::type_erasure::TypeErasedBox; use http::StatusCode; use tracing_test::traced_test; fn new_request_serializer() -> CannedReques...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
Ok(()) } } macro_rules! interceptor_error_handling_test { ($interceptor:ident, $ctx:ty, $expected:expr) => { #[derive(Debug)] struct FailingInterceptorA; impl Interceptor for FailingInterceptorA { fn $interceptor(&self, _ctx: $ctx, _cfg: &mut ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
interceptors: &mut InterceptorRegistrar, ) -> Result<(), BoxError> { interceptors.register(SharedInterceptor::new(FailingInterceptorA)); interceptors.register(SharedInterceptor::new(FailingInterceptorB)); interceptors.register(SharedInterceptor...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
async fn test_modify_before_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeSerialization, source: Some(\"FailingInterceptorC\") } })""#.to_string(); interceptor_error_handling_test!( modify_before_ser...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
} #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
read_after_signing, &InterceptorContext<BeforeTransmit>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: I...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
#[traced_test] async fn test_modify_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
); } #[tokio::test] #[traced_test] async fn test_read_after_attempt_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d345f247e3b91d05c847ae9a45fcd03e53d8175e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d345f247e3b91d05c847ae9a45fcd03e53d8175e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
556
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::timeout::{MaybeTimeout, ProvideMay...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
Err(err) => { use aws_smithy_runtime_api::client::interceptors::context::phase::Phase; let (_input, output_or_error, _request, response, phase) = $ctx.into_parts(); return Err(phase.convert_error(err.into(), output_or_error, response)); } } }; } #...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
let operation_timeout_config = cfg.maybe_timeout_config(TimeoutKind::Operation); invoke_post_config(cfg, context, interceptors) .maybe_timeout_with_config(operation_timeout_config) .await } async fn invoke_post_config( cfg: &mut ConfigBag, mut before_serialization: InterceptorContext<Before...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
Err(err) => bail!(before_transmit, err), Ok(ShouldAttempt::YesAfterDelay(_)) => { unreachable!("Delaying the initial request is currently unsupported. If this feature is important to you, please file an issue in GitHub.") } } } let mut checkpoint = AttemptCheckpo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
checkpoint.finalize() } // Making an HTTP request can fail for several reasons, but we still need to // call lifecycle events when that happens. Therefore, we define this // `make_an_attempt` function to make error handling simpler. #[tracing::instrument(skip_all)] async fn make_an_attempt( mut checkpoint: Attempt...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
let response_deserializer = cfg.response_deserializer(); match response_deserializer.deserialize_streaming(response) { Some(output_or_error) => Ok(output_or_error), None => read_body(response) .instrument(debug_span!("read_body")) .await .m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
use aws_smithy_runtime_api::config_bag::ConfigBag; use aws_smithy_runtime_api::type_erasure::TypeErasedBox; use http::StatusCode; use tracing_test::traced_test; fn new_request_serializer() -> CannedRequestSerializer { CannedRequestSerializer::success( http::Request::builder() ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
} } macro_rules! interceptor_error_handling_test { ($interceptor:ident, $ctx:ty, $expected:expr) => { #[derive(Debug)] struct FailingInterceptorA; impl Interceptor for FailingInterceptorA { fn $interceptor(&self, _ctx: $ctx, _cfg: &mut ConfigBag) -> R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
) -> Result<(), BoxError> { interceptors.register(SharedInterceptor::new(FailingInterceptorA)); interceptors.register(SharedInterceptor::new(FailingInterceptorB)); interceptors.register(SharedInterceptor::new(FailingInterceptorC)); Ok(()) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeSerialization, source: Some(\"FailingInterceptorC\") } })""#.to_string(); interceptor_error_handling_test!( modify_before_serialization, &mut InterceptorContext<BeforeSerialization>,...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
#[tokio::test] #[traced_test] async fn test_read_before_attempt_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.to_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
&InterceptorContext<BeforeTransmit>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBe...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
async fn test_modify_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(None), r...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
} #[tokio::test] #[traced_test] async fn test_read_after_attempt_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5fc9af9028632531d4496b3b5acbeef06a8f253b
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5fc9af9028632531d4496b3b5acbeef06a8f253b/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
555
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
Err(err) => { use aws_smithy_runtime_api::client::interceptors::context::phase::Phase; let (_input, output_or_error, _request, response, phase) = $ctx.into_parts(); return Err(phase.convert_error(err.into(), output_or_error, response)); } } }; } #...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
01df6ee67fe8e710d5d0d4ba1217915f2a9f846e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01df6ee67fe8e710d5d0d4ba1217915f2a9f846e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
checkpoint.finalize() } // Making an HTTP request can fail for several reasons, but we still need to // call lifecycle events when that happens. Therefore, we define this // `make_an_attempt` function to make error handling simpler. #[tracing::instrument(skip_all)] async fn make_an_attempt( mut checkpoint: Attempt...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
01df6ee67fe8e710d5d0d4ba1217915f2a9f846e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01df6ee67fe8e710d5d0d4ba1217915f2a9f846e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
let response_deserializer = cfg.response_deserializer(); match response_deserializer.deserialize_streaming(response) { Some(output_or_error) => Ok(output_or_error), None => read_body(response) .instrument(debug_span!("read_body")) .await .m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
01df6ee67fe8e710d5d0d4ba1217915f2a9f846e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01df6ee67fe8e710d5d0d4ba1217915f2a9f846e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
use aws_smithy_runtime_api::config_bag::ConfigBag; use aws_smithy_runtime_api::type_erasure::TypeErasedBox; use http::StatusCode; use std::sync::Arc; use tracing_test::traced_test; fn new_request_serializer() -> CannedRequestSerializer { CannedRequestSerializer::success( http::R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
01df6ee67fe8e710d5d0d4ba1217915f2a9f846e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01df6ee67fe8e710d5d0d4ba1217915f2a9f846e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
Ok(()) } } macro_rules! interceptor_error_handling_test { ($interceptor:ident, $ctx:ty, $expected:expr) => { #[derive(Debug)] struct FailingInterceptorA; impl Interceptor for FailingInterceptorA { fn $interceptor(&self, _ctx: $ctx, _cfg: &mut ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
01df6ee67fe8e710d5d0d4ba1217915f2a9f846e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01df6ee67fe8e710d5d0d4ba1217915f2a9f846e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
interceptors: &mut Interceptors, ) -> Result<(), BoxError> { interceptors.register_client_interceptor(Arc::new(FailingInterceptorA)); interceptors.register_operation_interceptor(Arc::new(FailingInterceptorB)); interceptors.register_operation_in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
01df6ee67fe8e710d5d0d4ba1217915f2a9f846e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01df6ee67fe8e710d5d0d4ba1217915f2a9f846e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
use aws_smithy_runtime_api::config_bag::ConfigBag; use aws_smithy_runtime_api::type_erasure::TypeErasedBox; use http::StatusCode; use std::sync::Arc; use tracing_test::traced_test; fn new_request_serializer() -> CannedRequestSerializer { CannedRequestSerializer::success( http::R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
} } macro_rules! interceptor_error_handling_test { ($interceptor:ident, $ctx:ty, $expected:expr) => { #[derive(Debug)] struct FailingInterceptorA; impl Interceptor for FailingInterceptorA { fn $interceptor(&self, _ctx: $ctx, _cfg: &mut ConfigBag) -> R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
interceptors.register_client_interceptor(Arc::new(FailingInterceptorA)); interceptors.register_operation_interceptor(Arc::new(FailingInterceptorB)); interceptors.register_operation_interceptor(Arc::new(FailingInterceptorC)); Ok(()) } ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
interceptor_error_handling_test!( modify_before_serialization, &mut InterceptorContext<BeforeSerialization>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_handling() { let expected = r#""ConstructionFailure(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
#[tokio::test] #[traced_test] async fn test_read_before_attempt_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.to_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeTransmit, source: Some(\"FailingInterceptorC\...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(None), retryable: true } } })""#.to_string(); interceptor_error_handlin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
#[tokio::test] #[traced_test] async fn test_read_after_attempt_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inne...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
531284352d6e317c6cf4357dec0e71fa9d17e093
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/531284352d6e317c6cf4357dec0e71fa9d17e093/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
554
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
checkpoint.finalize() } // Making an HTTP request can fail for several reasons, but we still need to // call lifecycle events when that happens. Therefore, we define this // `make_an_attempt` function to make error handling simpler. #[tracing::instrument(skip_all)] async fn make_an_attempt( mut checkpoint: Attempt...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
217
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
let response_deserializer = cfg.response_deserializer(); match response_deserializer.deserialize_streaming(response) { Some(output_or_error) => Ok(output_or_error), None => read_body(response) .instrument(debug_span!("read_body")) .await .m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
217
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::orchestrator::phase::Phase; use cr...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
10c5e0417542f15413ce12556dadd6890a12aadf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/10c5e0417542f15413ce12556dadd6890a12aadf/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
let mut interceptors = Interceptors::new(); let context = Phase::construction(InterceptorContext::new(input)) // Client configuration .include(|_| runtime_plugins.apply_client_configuration(cfg, &mut interceptors))? .include(|ctx| interceptors.client_read_before_execution(ctx, cfg))? ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
10c5e0417542f15413ce12556dadd6890a12aadf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/10c5e0417542f15413ce12556dadd6890a12aadf/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
{ let retry_strategy = cfg.retry_strategy(); match retry_strategy.should_attempt_initial_request(cfg) { // Yes, let's make a request Ok(ShouldAttempt::Yes) => {} // No, this request shouldn't be sent Ok(ShouldAttempt::No) => { return Err(Ph...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
10c5e0417542f15413ce12556dadd6890a12aadf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/10c5e0417542f15413ce12556dadd6890a12aadf/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
} // I couldn't determine if the request should be retried because an error occurred. Err(err) => { return Err(Phase::response_handling(context).fail(err)); } } let handling_phase = Phase::response_handling(context) .include_mut(|ctx| inte...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
10c5e0417542f15413ce12556dadd6890a12aadf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/10c5e0417542f15413ce12556dadd6890a12aadf/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
// within the interceptor context, so we clone it here. let call_result = { let request = context.take_request().expect("request has been set"); let connection = cfg.connection(); connection.call(request).await }; let mut context = Phase::dispatch(context) .include_mut(move ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
10c5e0417542f15413ce12556dadd6890a12aadf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/10c5e0417542f15413ce12556dadd6890a12aadf/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
196
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::orchestrator::phase::Phase; use aw...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
// Before serialization .include(|ctx| interceptors.read_before_serialization(ctx, cfg))? .include_mut(|ctx| interceptors.modify_before_serialization(ctx, cfg))? // Serialization .include_mut(|ctx| { let request_serializer = cfg.request_serializer(); let request =...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
.await? .include(|ctx| interceptors.read_after_attempt(ctx, cfg))? .include_mut(|ctx| interceptors.modify_before_attempt_completion(ctx, cfg))? .finish(); let retry_strategy = cfg.retry_strategy(); match retry_strategy.should_attempt_retry(&context, cfg) { ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
.include_mut(|ctx| orchestrate_endpoint(ctx, cfg))? .include_mut(|ctx| interceptors.modify_before_signing(ctx, cfg))? .include(|ctx| interceptors.read_before_signing(ctx, cfg))?; let dispatch_phase = orchestrate_auth(dispatch_phase, cfg).await?; let mut context = dispatch_phase .includ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
169
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use self::auth::orchestrate_auth; use crate::client::orchestrator::endpoints::orchestrate_endpoint; use crate::client::orchestrator::http::read_body; use crate::client::orchestrator::phase::Phase; use aw...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
591369a128c887739a4c5475db20904687de1fab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/591369a128c887739a4c5475db20904687de1fab/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60