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 constructor(delegate: HttpEngine, batchIntervalMillis: Long, maxBatchSize: Int, exposeErrorBody: Boolean) : HttpEngine
BatchingHttpInterceptor
Link copied to clipboard
common
class BatchingHttpInterceptor 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<<ERROR CLASS>>) : HttpInterceptor
HttpCall
Link copied to clipboard
common
class HttpCall(engine: HttpEngine, method: <ERROR CLASS>, url: String)
HttpEngine
Link copied to clipboard
common
interface HttpEngine
A wrapper around platform specific engines
HttpInfo
Link copied to clipboard
common
class HttpInfo constructor(startMillis: Long, endMillis: Long, statusCode: Int, headers: List<<ERROR CLASS>>)
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(level: LoggingInterceptor.Level, log: (String) -> Unit) : HttpInterceptor
An interceptor that logs requests and responses.
StreamingNSURLSessionHttpEngine
Link copied to clipboard
apple
class StreamingNSURLSessionHttpEngine(timeoutMillis: Long) : HttpEngine
An HttpEngine based on NSURLSession with the ability to stream data as it is received when using Transfer-Encoding: Chunked.
TokenProvider
Link copied to clipboard
common
interface TokenProvider
UrlSessionDataTaskCompletionHandler
Link copied to clipboard
apple
typealias UrlSessionDataTaskCompletionHandler = (<ERROR CLASS>?, <ERROR CLASS>?, <ERROR CLASS>?) -> 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