public final class HttpPipeline extends Object
| 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 request) through pipeline.
|
Mono<HttpResponse> |
send(HttpRequest request)
Wraps the request in a context and send 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 - the requestpublic Mono<HttpResponse> send(HttpRequest request, Context data)
request - the requestdata - additional metadata to pass along in the requestpublic Mono<HttpResponse> send(HttpPipelineCallContext context)
context - the request contextCopyright © 2019 Microsoft Corporation. All rights reserved.