HeadersInterceptor
Functions
Link copied to clipboard
open suspend override fun intercept(request: HttpRequest, chain: HttpInterceptorChain): HttpResponse
Intercepts the request and returns a response. Implementation may throw in case of error. Those errors are typically caught by the network transport and subsequently exposed in ApolloResponse.exception
. If the exception is not an instance of ApolloException, it will be wrapped in an instance of ApolloNetworkException.