MutableExecutionOptions

interface MutableExecutionOptions<T> : ExecutionOptions

Functions

Link copied to clipboard
abstract fun addExecutionContext(executionContext: ExecutionContext): T
Link copied to clipboard
abstract fun addHttpHeader(name: String, value: String): T

Add an HTTP header to be sent with the request.

Link copied to clipboard
abstract fun canBeBatched(canBeBatched: Boolean?): T
Link copied to clipboard
abstract fun enableAutoPersistedQueries(enableAutoPersistedQueries: Boolean?): T
Link copied to clipboard
abstract fun httpHeaders(httpHeaders: List<HttpHeader>?): T

Sets HTTP headers to be sent with the request.

Link copied to clipboard
abstract fun httpMethod(httpMethod: HttpMethod?): T

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
abstract fun sendApqExtensions(sendApqExtensions: Boolean?): T
Link copied to clipboard
abstract fun sendDocument(sendDocument: Boolean?): T

Properties

Link copied to clipboard
abstract val canBeBatched: Boolean?
Link copied to clipboard
abstract val enableAutoPersistedQueries: Boolean?

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

Link copied to clipboard
abstract val executionContext: ExecutionContext
Link copied to clipboard
abstract val httpHeaders: List<HttpHeader>?

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

Link copied to clipboard
abstract val httpMethod: HttpMethod?

The HTTP method to use for the request

Link copied to clipboard
abstract val sendApqExtensions: Boolean?

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

Link copied to clipboard
abstract val sendDocument: Boolean?

Inheritors

Link copied to clipboard