DebugInitializeInterceptor

public class DebugInitializeInterceptor : ApolloInterceptor

DebugInitializeInterceptor is an interceptor that notifies that an operation begins.

DebugInitializeInterceptor is intended to be put before all the rest interceptors.

Typically you don’t need to use this class directly but if you want to assemble your custom interceptor chain, you need to put this class at the right place.

  • Declaration

    Swift

    public func interceptAsync<Operation>(chain: RequestChain, request: HTTPRequest<Operation>, response: HTTPResponse<Operation>?, completion: @escaping (Result<GraphQLResult<Operation.Data>, Error>) -> Void) where Operation : GraphQLOperation