Table of Contents

Class RedirectHandler

Namespace
Amazon.Runtime.Internal
Assembly
AWSSDK.Core.dll

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 IExecutionContext
redirectedLocation 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 IExecutionContext

The 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 IExecutionContext

The execution context which contains both the requests and response context.