- All Superinterfaces:
- HttpResponse<T>,- TrackedResponse<T>
A 
TrackedResponse that knows it may have been generated from an HTTP cache.- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumThe status of an attempt to retrieve an HTTP response from cache.Nested classes/interfaces inherited from interface java.net.http.HttpResponseHttpResponse.BodyHandler<T>, HttpResponse.BodyHandlers, HttpResponse.BodySubscriber<T>, HttpResponse.BodySubscribers, HttpResponse.PushPromiseHandler<T>, HttpResponse.ResponseInfo
- 
Method SummaryModifier and TypeMethodDescriptionReturns anOptionalfor the response constructed from cache.Returns this response'sCacheAwareResponse.CacheStatus.Returns anOptionalfor the response received as a result of using the network.Methods inherited from interface java.net.http.HttpResponsebody, headers, previousResponse, request, sslSession, statusCode, uri, versionMethods inherited from interface com.github.mizosoft.methanol.TrackedResponsetimeRequestSent, timeResponseReceived
- 
Method Details- 
networkResponseOptional<TrackedResponse<?>> networkResponse()Returns anOptionalfor the response received as a result of using the network. An empty optional is returned in case the response was entirely constructed from cache.
- 
cacheResponseOptional<TrackedResponse<?>> cacheResponse()Returns anOptionalfor the response constructed from cache. An empty optional is returned in case no response matching the initiating request was found in the cache.
- 
cacheStatusCacheAwareResponse.CacheStatus cacheStatus()Returns this response'sCacheAwareResponse.CacheStatus.
 
-