Builder
class Builder<D : Operation.Data>(operation: Operation<D>) : MutableExecutionOptions<ApolloRequest.Builder<D>>
Content copied to clipboard
Constructors
Functions
Link copied to clipboard
open override fun addExecutionContext(executionContext: ExecutionContext): ApolloRequest.Builder<D>
Content copied to clipboard
Link copied to clipboard
open override fun addHttpHeader(name: String, value: String): ApolloRequest.Builder<D>
Content copied to clipboard
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>
Content copied to clipboard
Link copied to clipboard
open override fun enableAutoPersistedQueries(enableAutoPersistedQueries: Boolean?): ApolloRequest.Builder<D>
Content copied to clipboard
Link copied to clipboard
fun executionContext(executionContext: ExecutionContext): ApolloRequest.Builder<D>
Content copied to clipboard
Link copied to clipboard
open override fun httpHeaders(httpHeaders: List<HttpHeader>?): ApolloRequest.Builder<D>
Content copied to clipboard
Sets HTTP headers to be sent with the request.
Link copied to clipboard
open override fun httpMethod(httpMethod: HttpMethod?): ApolloRequest.Builder<D>
Content copied to clipboard
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
Link copied to clipboard
open override fun sendApqExtensions(sendApqExtensions: Boolean?): ApolloRequest.Builder<D>
Content copied to clipboard
Link copied to clipboard
open override fun sendDocument(sendDocument: Boolean?): ApolloRequest.Builder<D>
Content copied to clipboard
Properties
Link copied to clipboard
HTTP headers to use for the request Used by com.apollographql.apollo3.api.http.DefaultHttpRequestComposer
Link copied to clipboard
Whether to send the Auto Persisted Queries extensions Used by com.apollographql.apollo3.api.http.DefaultHttpRequestComposer
Link copied to clipboard
Whether to send the document Used by com.apollographql.apollo3.api.http.DefaultHttpRequestComposer