Class HttpRequestLoggingContext

java.lang.Object
com.azure.core.http.policy.HttpRequestLoggingContext

public final class HttpRequestLoggingContext extends Object
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 Details

    • getHttpRequest

      public HttpRequest getHttpRequest()
      Gets the HTTP request being sent.
      Returns:
      The HTTP request.
    • getContext

      public Context getContext()
      Gets the contextual information about the HTTP request.
      Returns:
      The contextual information.
    • getTryCount

      public Integer getTryCount()
      Gets the try count for the HTTP request.
      Returns:
      The HTTP request try count.