Package com.apollographql.apollo
Interface ApolloCall.Builder<T>
-
- All Known Subinterfaces:
ApolloMutationCall.Builder<T>,ApolloQueryCall.Builder<T>
- All Known Implementing Classes:
RealApolloCall.Builder
- Enclosing interface:
- ApolloCall<T>
public static interface ApolloCall.Builder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApolloCall<T>build()ApolloCall.Builder<T>cacheHeaders(com.apollographql.apollo.cache.CacheHeaders cacheHeaders)Sets theCacheHeadersto use for this call.
-
-
-
Method Detail
-
build
@NotNull ApolloCall<T> build()
-
cacheHeaders
@NotNull ApolloCall.Builder<T> cacheHeaders(@NotNull com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
Sets theCacheHeadersto use for this call.com.apollographql.apollo.interceptor.FetchOptionswill be configured with this headers, and will be accessible from theResponseFetcherused for this call.- Parameters:
cacheHeaders- theCacheHeadersthat will be passed with records generated from this request toNormalizedCache. Standardized cache headers are defined inApolloCacheHeaders.- Returns:
- The builder
-
-