public class AddHeadersPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
AddHeadersPolicyFactory(HttpHeaders headers)
Creates a AddHeadersPolicyFactory which adds headers from this HttpHeaders object to the request.
|
| Modifier and Type | Method and Description |
|---|---|
RequestPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public AddHeadersPolicyFactory(HttpHeaders headers)
headers - The headers to add to outgoing requests.public RequestPolicy create(RequestPolicy next, RequestPolicyOptions options)
RequestPolicyFactorycreate in interface RequestPolicyFactorynext - the next RequestPolicy in the request-response pipeline.options - The optional arguments that can be passed to a RequestPolicy./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/