Package com.apollographql.apollo3.cache.http

Types

CachingHttpEngine
Link copied to clipboard
class CachingHttpEngine(directory: File, maxSize: Long, fileSystem: FileSystem, delegate: HttpEngine) : HttpEngine
DiskLruHttpCache
Link copied to clipboard
class DiskLruHttpCache(fileSystem: FileSystem, directory: File, maxSize: Long)
HttpFetchPolicy
Link copied to clipboard
enum HttpFetchPolicy : Enum<HttpFetchPolicy>

Functions

httpCache
Link copied to clipboard
fun ApolloClient.Builder.httpCache(directory: File, maxSize: Long): ApolloClient.Builder
httpDoNotStore
Link copied to clipboard
fun <T : HasMutableExecutionContext<T>> HasMutableExecutionContext<T>.httpDoNotStore(doNotStore: Boolean): T
httpExpireAfterRead
Link copied to clipboard
fun <T : HasMutableExecutionContext<T>> HasMutableExecutionContext<T>.httpExpireAfterRead(expireAfterRead: Boolean): T
httpExpireTimeout
Link copied to clipboard
fun <T : HasMutableExecutionContext<T>> HasMutableExecutionContext<T>.httpExpireTimeout(millis: Long): T
httpFetchPolicy
Link copied to clipboard
fun <T : HasMutableExecutionContext<T>> HasMutableExecutionContext<T>.httpFetchPolicy(httpFetchPolicy: HttpFetchPolicy): T
withHttpCache
Link copied to clipboard
fun ApolloClient.withHttpCache(directory: File, maxSize: Long): ApolloClient
withHttpDoNotStore
Link copied to clipboard
fun ApolloClient.withHttpDoNotStore(doNotStore: Boolean): ApolloClient
fun <D : Operation.Data> ApolloRequest<D>.withHttpDoNotStore(doNotStore: Boolean): ApolloRequest<D>
withHttpExpireAfterRead
Link copied to clipboard
fun ApolloClient.withHttpExpireAfterRead(expireAfterRead: Boolean): ApolloClient
fun <D : Operation.Data> ApolloRequest<D>.withHttpExpireAfterRead(expireAfterRead: Boolean): ApolloRequest<D>
withHttpExpireTimeout
Link copied to clipboard
fun ApolloClient.withHttpExpireTimeout(millis: Long): ApolloClient
fun <D : Operation.Data> ApolloRequest<D>.withHttpExpireTimeout(millis: Long): ApolloRequest<D>
withHttpFetchPolicy
Link copied to clipboard
fun ApolloClient.withHttpFetchPolicy(httpFetchPolicy: HttpFetchPolicy): ApolloClient
fun <D : Operation.Data> ApolloRequest<D>.withHttpFetchPolicy(httpFetchPolicy: HttpFetchPolicy): ApolloRequest<D>

Properties

isFromHttpCache
Link copied to clipboard
val <D : Operation.Data> ApolloResponse<D>.isFromHttpCache: Boolean