Add RedirectPolicy into azure-core #23095
Labels
Azure.Core
azure-core
Client
This issue points to a problem in the data-plane of the library.
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
Create a new
HttpPipelinePolicy
inazure-core
which is capable of handling redirect responses and forwarding the request to the new location. Given that this will be a generic policy,RedirectPolicy
should have the following configurations available:Function<HttpResponse, String>
)Consumer<String>
)Predicate<HttpResponse>
)Additionally, the
HttpClient
implementations provided by the SDKs,azure-core-http-netty
andazure-core-http-okhttp
, should be investigated into what they do internally when a redirect response is returned to them. Their redirect handling should be documented and determined whether it should be implicit handled once the policy is created.The text was updated successfully, but these errors were encountered: