你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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