HttpPipelinePolicy
Represent an extension point for the HttpPipeline that can mutate the Request and react to received Response.
protected HttpPipelinePolicy()
Invokes the next HttpPipelinePolicy in the pipeline.
protected static ValueTask ProcessNextAsync(HttpMessage message, ReadOnlyMemory<HttpPipelinePolicy> pipeline)
Invokes the next HttpPipelinePolicy in the pipeline.
Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync and observe the Response changes after.
public abstract ValueTask ProcessAsync(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.