public class HostPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
HostPolicy(String host)
Create HostPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<HttpResponse> |
process(HttpPipelineCallContext context,
HttpPipelineNextPolicy next)
Processes provided request context and invokes the next policy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPipelinePositionpublic HostPolicy(String host)
host - The host to set on every HttpRequest.public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpPipelinePolicyprocess in interface HttpPipelinePolicycontext - The request context.next - The next policy to invoke.Copyright © 2020 Microsoft Corporation. All rights reserved.