Sdílet prostřednictvím


HttpPipelinePolicy Class

Definition

Represent an extension point for the HttpPipeline that can mutate the Request and react to received Response.

public abstract class HttpPipelinePolicy
type HttpPipelinePolicy = class
Public MustInherit Class HttpPipelinePolicy
Inheritance
HttpPipelinePolicy
Derived

Constructors

HttpPipelinePolicy()

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.

ProcessNext(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>)

Invokes the next HttpPipelinePolicy in the pipeline.

ProcessNextAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>)

Invokes the next HttpPipelinePolicy in the pipeline.

Applies to