Package com.apollographql.apollo3.network.http
Types
Link copied to clipboard
class ApolloClientAwarenessInterceptor(clientName: String, clientVersion: String) : HttpInterceptor
Content copied to clipboard
A HttpInterceptor to add Client Awareness.
Link copied to clipboard
Content copied to clipboard
Link copied to clipboard
class BatchingHttpInterceptor @JvmOverloads constructor( batchIntervalMillis: Long = 10, maxBatchSize: Int = 10, exposeErrorBody: Boolean = false) : HttpInterceptor
Content copied to clipboard
An HttpInterceptor that batches HTTP queries to execute multiple at once. This reduces the number of HTTP round trips at the price of increased latency as every request in the batch is now as slow as the slowest one. Some servers might have a per-HTTP-call cache making it faster to resolve 1 big array of n queries compared to resolving the n queries separately.
Link copied to clipboard
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A wrapper around platform specific engines
Link copied to clipboard
class HttpInfo constructor( val startMillis: Long, val endMillis: Long, val statusCode: Int, val headers: List<HttpHeader>) : ExecutionContext.Element
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class LoggingInterceptor(level: LoggingInterceptor.Level, log: (String) -> Unit = { println(it) }) : HttpInterceptor
Content copied to clipboard
An interceptor that logs requests and responses.
Link copied to clipboard
An HttpEngine based on NSURLSession with the ability to stream data as it is received when using Transfer-Encoding: Chunked
. This is useful when using @defer
.
Link copied to clipboard
Link copied to clipboard
typealias UrlSessionDataTaskCompletionHandler = (NSData?, NSURLResponse?, NSError?) -> Unit
Content copied to clipboard