Builder

class Builder(statusCode: Int, durationMs: Long)

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.

Constructors

Link copied to clipboard
constructor(statusCode: Int, durationMs: Long)

Functions

Link copied to clipboard
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
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