Replay mode (replay) allows GripMock to act as a proxy that prioritizes local stubs. For every incoming request (unary, server-stream, client-stream, or bidirectional), GripMock follows this logic:
- Attempt to match the request against local stubs using full criteria (including
input, headers, session, contains/matches, and options.times). - If a match is found, the local response is returned.
- If the matcher returns
NotFound, the request is forwarded to the configured upstream server.
This mode is ideal for gradual migration where you have partial stubs and need the real upstream service to handle uncovered paths.