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
Link copied to clipboard
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
open override var ignoreUnknownKeys: Boolean?

Whether to ignore the unknown keys in the JSON response.

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?
Link copied to clipboard
open override var url: String?

The url to use for that request.

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

Custom extensions to be sent to the server. Those extensions are sent in addition to the default Apollo extensions, if any (like auto-persisted queries).

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
open override fun ignoreUnknownKeys(ignoreUnknownKeys: Boolean?): ApolloRequest.Builder<D>

Sets whether to ignore the unknown keys in the JSON response.

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>
Link copied to clipboard
fun sendEnhancedClientAwareness(sendEnhancedClientAwareness: Boolean): ApolloRequest.Builder<D>
Link copied to clipboard
open override fun url(url: String?): ApolloRequest.Builder<D>

Configures the url to use for this request.