public final class HttpPipeline extends Object
| Modifier and Type | Method and Description |
|---|---|
static HttpPipelineBuilder |
builder()
Creates a builder that can configure options for the HttpPipeline before creating an instance of it.
|
HttpPipelinePolicy |
getPolicy(int index)
Get the policy at the passed index in the pipeline.
|
int |
getPolicyCount()
Get the count of policies in the pipeline.
|
HttpClient |
httpClient()
Get the
HttpClient associated with the pipeline. |
reactor.core.publisher.Mono<HttpResponse> |
send(HttpPipelineCallContext context)
Sends the context (containing request) through pipeline.
|
reactor.core.publisher.Mono<HttpResponse> |
send(HttpRequest request)
Wraps the request in a context and send it through pipeline.
|
reactor.core.publisher.Mono<HttpResponse> |
send(HttpRequest request,
Context data)
Wraps the request in a context with additional metadata and sends it through the pipeline.
|
public static HttpPipelineBuilder builder()
HttpPipelineBuilder to create a HttpPipeline from.public HttpPipelinePolicy getPolicy(int index)
index - index of the the policy to retrieve.public int getPolicyCount()
public HttpClient httpClient()
HttpClient associated with the pipeline.HttpClient associated with the pipelinepublic reactor.core.publisher.Mono<HttpResponse> send(HttpRequest request)
request - the requestpublic reactor.core.publisher.Mono<HttpResponse> send(HttpRequest request, Context data)
request - the requestdata - additional metadata to pass along in the requestpublic reactor.core.publisher.Mono<HttpResponse> send(HttpPipelineCallContext context)
context - the request contextCopyright © 2019 Microsoft Corporation. All rights reserved.