ApolloRequest

An ApolloRequest represents a GraphQL request to execute.

ApolloRequest is immutable and is usually constructed from com.apollographql.apollo3.ApolloCall.

You can mutate an ApolloRequest by calling newBuilder:

val newRequest = apolloRequest.newBuilder().addHttpHeader("Authorization", "Bearer $token").build()

See also

com.apollographql.apollo3.ApolloCall

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val canBeBatched: Boolean?

Whether the request can be batched. Used by com.apollographql.apollo3.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.apollo3.interceptor.AutoPersistedQueryInterceptor

Link copied to clipboard

The ExecutionContext to use for the request.

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

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

Link copied to clipboard
open override val httpMethod: HttpMethod?

The HTTP method to use for the request.

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

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

Link copied to clipboard
open override val sendDocument: Boolean?

Functions