Class HttpResponseLoggingContext

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

public final class HttpResponseLoggingContext extends Object
Options class containing information available during HTTP response logging.
  • Method Details

    • getHttpResponse

      public HttpResponse getHttpResponse()
      Gets the HTTP response being received.
      Returns:
      The HTTP response being received.
    • getResponseDuration

      public Duration getResponseDuration()
      Gets the duration between the HTTP request being sent and the HTTP response being received.
      Returns:
      The duration between the HTTP request being sent and the HTTP response being received.
    • getContext

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

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