Package com.apollographql.apollo3.network.http

Types

ApolloClientAwarenessInterceptor
Link copied to clipboard
common
class ApolloClientAwarenessInterceptor(clientName: String, clientVersion: String) : HttpInterceptor
BatchingHttpEngine
Link copied to clipboard
common
class BatchingHttpEngine(delegate: HttpEngine, batchIntervalMillis: Long, maxBatchSize: Int, batchByDefault: Boolean) : HttpEngine
An HttpEngine that wraps another one and batches HTTP queries to execute mutiple at once.
BearerTokenInterceptor
Link copied to clipboard
common
class BearerTokenInterceptor(tokenProvider: TokenProvider) : HttpInterceptor
DataTaskFactory
Link copied to clipboard
apple
fun fun interface DataTaskFactory
DefaultHttpEngine
Link copied to clipboard
common
class DefaultHttpEngine : HttpEngine
HeadersInterceptor
Link copied to clipboard
common
class HeadersInterceptor(headers: List<HttpHeader>) : HttpInterceptor
HttpEngine
Link copied to clipboard
common
interface HttpEngine
A wrapper around platform specific engines
HttpInfo
Link copied to clipboard
common
class HttpInfo(millisStart: Long, millisEnd: Long, statusCode: Int, headers: List<HttpHeader>) : ExecutionContext.Element
HttpInterceptor
Link copied to clipboard
common
interface HttpInterceptor
HttpInterceptorChain
Link copied to clipboard
common
interface HttpInterceptorChain
HttpNetworkTransport
Link copied to clipboard
common
class HttpNetworkTransport(httpRequestComposer: HttpRequestComposer, engine: HttpEngine, interceptors: List<HttpInterceptor>) : NetworkTransport
LoggingInterceptor
Link copied to clipboard
common
class LoggingInterceptor(log: (String) -> Unit) : HttpInterceptor
TokenProvider
Link copied to clipboard
common
interface TokenProvider
UrlSessionDataTaskCompletionHandler
Link copied to clipboard
apple
typealias UrlSessionDataTaskCompletionHandler = (NSData?, NSURLResponse?, NSError?) -> Unit

Functions

canBeBatched
Link copied to clipboard
common
fun <T : HasMutableExecutionContext<T>> HasMutableExecutionContext<T>.canBeBatched(canBeBatched: Boolean): T
HttpNetworkTransport
Link copied to clipboard
fun HttpNetworkTransport(serverUrl: String, callFactory: Call.Factory): HttpNetworkTransport
fun HttpNetworkTransport(serverUrl: String, okHttpClient: OkHttpClient): HttpNetworkTransport
withCanBeBatched
Link copied to clipboard
common
fun ApolloClient.withCanBeBatched(canBeBatched: Boolean): ApolloClient
fun <D : Operation.Data> ApolloRequest<D>.withCanBeBatched(canBeBatched: Boolean): ApolloRequest<D>
withDefaultHeaders
Link copied to clipboard
common
fun HttpNetworkTransport.withDefaultHeaders(headers: List<HttpHeader>): HttpNetworkTransport
Adds a new HeadersInterceptor that will add headers to each HttpRequest