public final class HttpPipeline extends Object
The HTTP pipeline may apply a set of HttpPipelinePolicies to the request before it is
sent and on the response as it is being returned.
HttpPipelinePolicy| Modifier and Type | Method and Description |
|---|---|
HttpClient |
getHttpClient()
Get the
HttpClient associated with the pipeline. |
HttpPipelinePolicy |
getPolicy(int index)
Get the policy at the passed index in the pipeline.
|
int |
getPolicyCount()
Get the count of policies in the pipeline.
|
Mono<HttpResponse> |
send(HttpPipelineCallContext context)
Sends the context (containing an HTTP request) through pipeline.
|
Mono<HttpResponse> |
send(HttpRequest request)
Wraps the
request in a context and sends it through pipeline. |
Mono<HttpResponse> |
send(HttpRequest request,
Context data)
Wraps the request in a context with additional metadata and sends it through the pipeline.
|
public HttpPipelinePolicy getPolicy(int index)
index - index of the the policy to retrieve.public int getPolicyCount()
public HttpClient getHttpClient()
HttpClient associated with the pipeline.HttpClient associated with the pipelinepublic Mono<HttpResponse> send(HttpRequest request)
request in a context and sends it through pipeline.request - The HTTP request to send.public Mono<HttpResponse> send(HttpRequest request, Context data)
request - THe HTTP request to send.data - Additional metadata to pass along with the request.public Mono<HttpResponse> send(HttpPipelineCallContext context)
context - The request context.Copyright © 2021 Microsoft Corporation. All rights reserved.