Module methanol

Class NetworkResponse


  • public final class NetworkResponse
    extends RawResponse
    A RawResponse that came from the network and may be written to cache.
    • Method Detail

      • discard

        public void discard​(java.util.concurrent.Executor executor)
        Discards the response body in background.
      • isCacheUpdating

        public boolean isCacheUpdating()
      • handleAsync

        public <T> java.util.concurrent.CompletableFuture<TrackedResponse<T>> handleAsync​(java.net.http.HttpResponse.BodyHandler<T> handler,
                                                                                          java.util.concurrent.Executor executor)
        Specified by:
        handleAsync in class RawResponse