public class AddHeadersPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
AddHeadersPolicy(HttpHeaders headers)
Creates a AddHeadersPolicy.
|
| 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 AddHeadersPolicy(HttpHeaders headers)
headers - The headers to add to outgoing requests.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.