public class HttpLoggingPolicy extends Object implements HttpPipelinePolicy
Modifier and Type | Field and Description |
---|---|
static String |
RETRY_COUNT_CONTEXT
Key for
Context to pass request retry count metadata for logging. |
Constructor and Description |
---|
HttpLoggingPolicy(HttpLogOptions httpLogOptions)
Creates an HttpLoggingPolicy with the given log configurations.
|
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 static final String RETRY_COUNT_CONTEXT
Context
to pass request retry count metadata for logging.public HttpLoggingPolicy(HttpLogOptions httpLogOptions)
httpLogOptions
- The HTTP logging configuration options.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.