BatchingHttpInterceptor
constructor(batchIntervalMillis: Long = 10, maxBatchSize: Int = 10, exposeErrorBody: Boolean = false)
Parameters
batchIntervalMillis
the maximum time interval before a new batch is sent
maxBatchSize
the maximum number of requests queued before a new batch is sent
exposeErrorBody
configures whether to expose the error body in ApolloHttpException.
If you're setting this to true
, you must catch ApolloHttpException and close the body explicitly to avoid sockets and other resources leaking.
Default: false