Interface InterceptHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InterceptHandler
Functional interface for handling intercepted network requests. Return a Response to mock the request, or null to continue to the network.
  • Method Details

    • handle

      Handle an intercepted request.
      Parameters:
      request - the intercepted request details
      Returns:
      a Response to mock the request, or null to continue to network