Package com.azure.core.http.policy
Class HttpRequestLoggingContext
java.lang.Object
com.azure.core.http.policy.HttpRequestLoggingContext
The
HttpRequestLoggingContext class provides contextual information available during HTTP request logging.
This class is useful when you need to access information about an HTTP request during logging. It provides access to the HTTP request being sent, the contextual information about the request, and the try count for the request.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the contextual information about the HTTP request.Gets the HTTP request being sent.Gets the try count for the HTTP request.
-
Method Details
-
getHttpRequest
Gets the HTTP request being sent.- Returns:
- The HTTP request.
-
getContext
Gets the contextual information about the HTTP request.- Returns:
- The contextual information.
-
getTryCount
Gets the try count for the HTTP request.- Returns:
- The HTTP request try count.
-