Share via


RedirectPolicy Class

Definition

A pipeline policy that detects a redirect response code and resends the request to the location specified by the response.

public sealed class RedirectPolicy : Azure.Core.Pipeline.HttpPipelinePolicy
type RedirectPolicy = class
    inherit HttpPipelinePolicy
Public NotInheritable Class RedirectPolicy
Inherits HttpPipelinePolicy
Inheritance
RedirectPolicy

Methods

Process(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>)

Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>) and observe the Response changes after.

ProcessAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>)

Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>) and observe the Response changes after.

SetAllowAutoRedirect(HttpMessage, Boolean)

Sets a value that indicates whether redirects will be automatically followed for this message.

Applies to