| Package | Description |
|---|---|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| com.microsoft.rest.v2.policy |
Code related to creating proxy implementations of interfaces that have been generated from
Swagger specifications.
|
| Modifier and Type | Method and Description |
|---|---|
HttpPipelineBuilder |
HttpPipelineBuilder.withHttpLoggingPolicy(HttpLogDetailLevel level)
Adds a RequestPolicy which logs all HTTP traffic using SLF4J.
|
HttpPipelineBuilder |
HttpPipelineBuilder.withHttpLoggingPolicy(HttpLogDetailLevel level,
boolean prettyPrintJSON)
Adds a RequestPolicy which logs all HTTP traffic using SLF4J.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpLogDetailLevel |
HttpLogDetailLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpLogDetailLevel[] |
HttpLogDetailLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
HttpLoggingPolicyFactory(HttpLogDetailLevel detailLevel)
Creates an HttpLoggingPolicyFactory with the given log level.
|
HttpLoggingPolicyFactory(HttpLogDetailLevel detailLevel,
boolean prettyPrintJSON)
Creates an HttpLoggingPolicyFactory with the given log level and pretty printing setting.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/