BatchingHttpEngine

class BatchingHttpEngine constructor(delegate: HttpEngine, batchIntervalMillis: Long, maxBatchSize: Int, exposeErrorBody: Boolean) : HttpEngine

Functions

dispose
Link copied to clipboard
common
open override fun dispose()
Disposes any resources used by the HttpEngineUse this to dispose a connection pool for an example.
execute
Link copied to clipboard
common
open suspend override fun execute(request: <ERROR CLASS>): <ERROR CLASS>
Executes the given HttpRequestthrows ApolloNetworkException if a network error happens HTTP errors should not throw but instead return a HttpResponse indicating the status code

Properties

delegate
Link copied to clipboard
common
val delegate: HttpEngine