Class RedirectHandler
This handler processes HTTP redirects and reissues the call to the redirected location.
public class RedirectHandler : PipelineHandler, IPipelineHandler
- Inheritance
-
RedirectHandler
- Implements
- Inherited Members
Constructors
RedirectHandler()
public RedirectHandler()
Methods
FinalizeForRedirect(IExecutionContext, string)
protected virtual void FinalizeForRedirect(IExecutionContext executionContext, string redirectedLocation)
Parameters
executionContext
IExecutionContextredirectedLocation
string
InvokeAsync<T>(IExecutionContext)
Processes HTTP redirects and reissues the call to the redirected location.
public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContext
IExecutionContextThe execution context, it contains the request and response context.
Returns
- Task<T>
A task that represents the asynchronous operation.
Type Parameters
T
The response type for the current request.
InvokeSync(IExecutionContext)
Processes HTTP redirects and reissues the call to the redirected location.
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContextThe execution context which contains both the requests and response context.