Module methanol

Interface TrackedResponse<T>

  • All Superinterfaces:
    java.net.http.HttpResponse<T>
    All Known Subinterfaces:
    CacheAwareResponse<T>

    public interface TrackedResponse<T>
    extends java.net.http.HttpResponse<T>
    A response with recorded send/receive timestamps.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.net.http.HttpResponse

        java.net.http.HttpResponse.BodyHandler<T extends java.lang.Object>, java.net.http.HttpResponse.BodyHandlers, java.net.http.HttpResponse.BodySubscriber<T extends java.lang.Object>, java.net.http.HttpResponse.BodySubscribers, java.net.http.HttpResponse.PushPromiseHandler<T extends java.lang.Object>, java.net.http.HttpResponse.ResponseInfo
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.time.Instant timeRequestSent()
      Returns the time the request resulting in this response was sent.
      java.time.Instant timeResponseReceived()
      Returns the time this response was received.
      • Methods inherited from interface java.net.http.HttpResponse

        body, headers, previousResponse, request, sslSession, statusCode, uri, version
    • Method Detail

      • timeRequestSent

        java.time.Instant timeRequestSent()
        Returns the time the request resulting in this response was sent.
      • timeResponseReceived

        java.time.Instant timeResponseReceived()
        Returns the time this response was received.