<PackageReference Include="Azure.Core" Version="1.47.3" />

HttpPipelinePolicy

public abstract class HttpPipelinePolicy
Represent an extension point for the HttpPipeline that can mutate the Request and react to received Response.
protected HttpPipelinePolicy()

protected static void ProcessNext(HttpMessage message, ReadOnlyMemory<HttpPipelinePolicy> pipeline)

Invokes the next HttpPipelinePolicy in the pipeline.

Invokes the next HttpPipelinePolicy in the pipeline.

public abstract void Process(HttpMessage message, ReadOnlyMemory<HttpPipelinePolicy> pipeline)

Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync and observe the Response changes after.

Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync and observe the Response changes after.