ApolloInterceptor

ApolloInterceptor is responsible for observing and modifying the requests going out and the corresponding responses coming back in. Typical responsibilities include adding or removing headers from the request or response objects, transforming the returned responses from one type to another, etc.

Inheritors

Functions

Link copied to clipboard
abstract fun <D : Operation.Data?> intercept(@NotNull request: ApolloRequest<D>, @NotNull chain: ApolloInterceptorChain, @NotNull callback: ApolloCallback<D>)
Intercepts the outgoing request and performs non-blocking operations on the request or the response returned by the next set of interceptors in the chain.