from

fun from(source: Source): HttpHandler

An HTTP Handler which responds to particular requests with the matching cached responses, or a 503.


fun from(replay: Replay, shouldReplay: (HttpMessage) -> Boolean = { true }): HttpHandler

An HTTP Handler which responds to from a stream of cached responses, or a 503 once the stream is exhausted.