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 @JvmOverloads() constructor(delegate: HttpEngine, batchIntervalMillis: Long, maxBatchSize: Int, exposeErrorBody: Boolean) : HttpEngine
BatchingHttpInterceptor
Link copied to clipboard
common
class BatchingHttpInterceptor @JvmOverloads() constructor(batchIntervalMillis: Long, maxBatchSize: Int, exposeErrorBody: Boolean) : HttpInterceptor
An HttpInterceptor that batches HTTP queries to execute multiple 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
HttpCall
Link copied to clipboard
common
class HttpCall(engine: HttpEngine, method: HttpMethod, url: String)
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 : 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

get
Link copied to clipboard
common
fun HttpEngine.get(url: String): HttpCall
post
Link copied to clipboard
common
fun HttpEngine.post(url: String): HttpCall