Interface ApolloQueryCall.Builder<T>

    • Method Detail

      • cacheHeaders

        @NotNull
        ApolloQueryCall.Builder<T> cacheHeaders​(@NotNull
                                                com.apollographql.apollo.cache.CacheHeaders cacheHeaders)
        Sets the CacheHeaders to use for this call. com.apollographql.apollo.interceptor.FetchOptions will be configured with this headers, and will be accessible from the ResponseFetcher used for this call.
        Specified by:
        cacheHeaders in interface ApolloCall.Builder<T>
        Parameters:
        cacheHeaders - the CacheHeaders that will be passed with records generated from this request to NormalizedCache. Standardized cache headers are defined in ApolloCacheHeaders.
        Returns:
        The ApolloCall object with the provided CacheHeaders.
      • httpCachePolicy

        @NotNull
        ApolloQueryCall.Builder<T> httpCachePolicy​(@NotNull
                                                   com.apollographql.apollo.api.cache.http.HttpCachePolicy.Policy httpCachePolicy)
        Sets the http cache policy for response/request cache.
        Parameters:
        httpCachePolicy - HttpCachePolicy.Policy to set
        Returns:
        ApolloQueryCall with the provided HttpCachePolicy.Policy
      • requestHeaders

        @NotNull
        ApolloQueryCall.Builder<T> requestHeaders​(@NotNull
                                                  RequestHeaders requestHeaders)
        Sets the RequestHeaders to use for this call. These headers will be added to the HTTP request when it is issued. These headers will be applied after any headers applied by application-level interceptors and will override those if necessary.
        Parameters:
        requestHeaders - The RequestHeaders to use for this request.
        Returns:
        The Builder