FakeHttpTransport

constructor(timeSource: TimeSource = TimeSource.Monotonic, maxResponseBytes: Long? = null, unmatched: Unmatched = Unmatched.Fail)(source)

Parameters

timeSource

the source of RecordedCall.receivedAt; TimeSource.Monotonic by default, VirtualClock.timeSource for virtual stamps.

maxResponseBytes

the body cap to mirror, or null (the default) for none; not negative.

unmatched

what to do with a request no stub matches; Unmatched.Fail by default.