Package io.karatelabs.driver
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.
Functional interface for handling intercepted network requests.
Return a Response to mock the request, or null to continue to the network.
-
Method Summary
Modifier and TypeMethodDescriptionhandle(InterceptRequest request) Handle an intercepted request.
-
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
-