Builder
Builds a CapturedResponse with statusCode and durationMs. Unless set, it has no headers, no body, no protocol, no final URL, and no prior responses, and is complete and not mocked.
Functions
Link copied to clipboard
Sets CapturedResponse.body.
Link copied to clipboard
Returns a CapturedResponse with the values set so far.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets CapturedResponse.headers.
Link copied to clipboard
Sets CapturedResponse.isMocked. false also clears CapturedResponse.mockRuleId.
Link copied to clipboard
Marks the response as one that rule produced, as returned by NetworkCaptureSink.findMockRule: sets CapturedResponse.isMocked and CapturedResponse.mockRuleId, so the Network tab can say which rule answered the request.
Link copied to clipboard
Sets CapturedResponse.priorResponses. The list is copied.
Link copied to clipboard