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, wait
getPipelinePosition
public 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)
HttpPipelinePolicy
process
in interface HttpPipelinePolicy
context
- The request context.next
- The next policy to invoke.Copyright © 2021 Microsoft Corporation. All rights reserved.