Builder

class Builder<D : Operation.Data>(operation: Operation<D>) : MutableExecutionOptions<ApolloRequest.Builder<D>>

Constructors

Link copied to clipboard
fun <D : Operation.Data> Builder(operation: Operation<D>)

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
fun build(): ApolloRequest<D>
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
fun executionContext(executionContext: ExecutionContext): ApolloRequest.Builder<D>
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 requestUuid(requestUuid: Uuid): ApolloRequest.Builder<D>
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>

Properties

Link copied to clipboard
open override var canBeBatched: Boolean? = null
Link copied to clipboard
open override var enableAutoPersistedQueries: Boolean? = null

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
open override var executionContext: ExecutionContext
Link copied to clipboard
open override var httpHeaders: List<HttpHeader>? = null

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

Link copied to clipboard
open override var httpMethod: HttpMethod? = null

The HTTP method to use for the request

Link copied to clipboard
open override var sendApqExtensions: Boolean? = null

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

Link copied to clipboard
open override var sendDocument: Boolean? = null