public class ReturnRequestIdHeaderPolicy extends Object implements com.azure.core.http.policy.HttpPipelinePolicy
ReturnRequestIdHeaderInterceptor should be added after RequestIdPolicy.
RequestIdPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
ReturnRequestIdHeaderPolicy.Option
Additional client handling, if server does not return client-request-id in response headers.
|
| Constructor and Description |
|---|
ReturnRequestIdHeaderPolicy()
Creates a new instance of ReturnRequestIdHeaderPolicy.
|
ReturnRequestIdHeaderPolicy(ReturnRequestIdHeaderPolicy.Option option)
Creates a new instance of ReturnRequestIdHeaderPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<com.azure.core.http.HttpResponse> |
process(com.azure.core.http.HttpPipelineCallContext context,
com.azure.core.http.HttpPipelineNextPolicy next) |
public ReturnRequestIdHeaderPolicy()
public ReturnRequestIdHeaderPolicy(ReturnRequestIdHeaderPolicy.Option option)
Optionally fill-in the client-request-id if server does not return it in response headers.
option - the option of additional client handling,
if server does not return client-request-id in response headers.public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
process in interface com.azure.core.http.policy.HttpPipelinePolicyCopyright © 2021 Microsoft Corporation. All rights reserved.