RecordingEvents

Simple recording events that can be used in tests

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun Events.and(next: Events): Events
Link copied to clipboard
fun (Request) -> Boolean.asRouter(description: String = unavailable.description): Router

Convert any predicate on a request into a router

Link copied to clipboard
Link copied to clipboard
fun HttpHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (request: Request) -> Response
Link copied to clipboard
open fun forEach(p0: Consumer<in Event>)
Link copied to clipboard
open operator override fun invoke(p1: Event)
Link copied to clipboard
open operator override fun iterator(): MutableIterator<Event>
Link copied to clipboard
Link copied to clipboard
fun Events.then(next: Events): (Event) -> Unit
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Convert a synchronous HttpHandler API to mimic AsyncHttpClient