public class ProtocolPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
ProtocolPolicy(String protocol,
boolean overwrite)
Creates a new ProtocolPolicy.
|
| 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 ProtocolPolicy(String protocol, boolean overwrite)
protocol - The protocol to set.overwrite - Whether or not to overwrite a HttpRequest's protocol if it already has one.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.