Constructors

Link copied to clipboard
constructor(operation: Operation<D>)

Properties

Link copied to clipboard
open override var canBeBatched: Boolean?

Whether the request can be batched. Used by com.apollographql.apollo.network.http.BatchingHttpInterceptor

Link copied to clipboard

Whether to enable Auto Persisted Queries and try to send a hashed query first. Used by com.apollographql.apollo.interceptor.AutoPersistedQueryInterceptor

Link copied to clipboard

The ExecutionContext to use for the request.

Link copied to clipboard
open override var httpHeaders: List<HttpHeader>?

HTTP headers to use for the request. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer

Link copied to clipboard
open override var httpMethod: HttpMethod?

The HTTP method to use for the request.

Link copied to clipboard
Link copied to clipboard
var requestUuid: Uuid?
Link copied to clipboard
Link copied to clipboard
open override var sendApqExtensions: Boolean?

Whether to send the Auto Persisted Queries extensions. Used by com.apollographql.apollo.api.http.DefaultHttpRequestComposer

Link copied to clipboard
open override var sendDocument: Boolean?

Functions

Link copied to clipboard
open override fun addExecutionContext(executionContext: ExecutionContext): ApolloRequest.Builder<D>
Link copied to clipboard
open override fun addHttpHeader(name: String, value: String): ApolloRequest.Builder<D>

Add an HTTP header to be sent with the request.

Link copied to clipboard
Link copied to clipboard
open override fun canBeBatched(canBeBatched: Boolean?): ApolloRequest.Builder<D>
Link copied to clipboard
open override fun enableAutoPersistedQueries(enableAutoPersistedQueries: Boolean?): ApolloRequest.Builder<D>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun httpHeaders(httpHeaders: List<HttpHeader>?): ApolloRequest.Builder<D>

Sets HTTP headers to be sent with the request.

Link copied to clipboard
open override fun httpMethod(httpMethod: HttpMethod?): ApolloRequest.Builder<D>

Configures whether the request should use GET or POST Usually, POST request can transfer bigger GraphQL documents but are more difficult to cache

Link copied to clipboard
fun ignoreApolloClientHttpHeaders(ignoreApolloClientHttpHeaders: Boolean?): ApolloRequest.Builder<D>
Link copied to clipboard
fun requestUuid(requestUuid: Uuid): ApolloRequest.Builder<D>
Link copied to clipboard
Link copied to clipboard
open override fun sendApqExtensions(sendApqExtensions: Boolean?): ApolloRequest.Builder<D>
Link copied to clipboard
open override fun sendDocument(sendDocument: Boolean?): ApolloRequest.Builder<D>