Share via


HttpPipeline Class

Definition

public class HttpPipeline : Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.ISendAsync
type HttpPipeline = class
    interface ISendAsync
Public Class HttpPipeline
Implements ISendAsync
Inheritance
HttpPipeline
Implements

Constructors

HttpPipeline()
HttpPipeline(ISendAsyncTerminalFactory)

Properties

Count
Pipeline
TerminalFactory

Methods

Append(Func<HttpRequestMessage,CancellationToken,Action,Func<String, CancellationToken,Func<EventArgs>,Task>,Func<HttpRequestMessage, CancellationToken,Action,Func<String,CancellationToken,Func<EventArgs>, Task>,Task<HttpResponseMessage>>,Task<HttpResponseMessage>>)
Append(IEnumerable<ISendAsyncFactory>)
Append(IEnumerable<SendAsyncStep>)
Append(ISendAsyncFactory)
Append(SendAsyncStep)
Clone()

Returns an HttpPipeline with the current state of this pipeline.

Prepend(Func<HttpRequestMessage,CancellationToken,Action,Func<String, CancellationToken,Func<EventArgs>,Task>,Func<HttpRequestMessage, CancellationToken,Action,Func<String,CancellationToken,Func<EventArgs>, Task>,Task<HttpResponseMessage>>,Task<HttpResponseMessage>>)
Prepend(IEnumerable<ISendAsyncFactory>)
Prepend(IEnumerable<SendAsyncStep>)
Prepend(ISendAsyncFactory)
Prepend(SendAsyncStep)
Retry429(HttpRequestMessage, IEventListener, ISendAsync)

The step to handle 429 response with retry-after header.

RetryError(HttpRequestMessage, IEventListener, ISendAsync)

Returns true if status code in HttpRequestExceptionWithStatus exception is greater than or equal to 500 and not NotImplemented (501) or HttpVersionNotSupported (505). Or it's 429 (TOO MANY REQUESTS) without Retry-After header.

SendAsync(HttpRequestMessage, IEventListener)

Applies to