Companion

object Companion

Functions

Link copied to clipboard
fun DiskStream(baseDir: String = ".", shouldStore: (HttpMessage) -> Boolean = { true }, id: () -> String = { System.nanoTime().toString() + UUID.randomUUID().toString() }): Sink

Serialises HTTP traffic to the FS in order.

Link copied to clipboard
fun DiskTree(baseDir: String = ".", shouldStore: (HttpMessage) -> Boolean = { true }): Sink

Serialises HTTP traffic to the FS, optimised for retrieval.

Link copied to clipboard
fun MemoryMap(cache: MutableMap<Request, Response>, shouldStore: (HttpMessage) -> Boolean = { true }): Sink

Serialises HTTP traffic in Memory, optimised for retrieval.

Link copied to clipboard
fun MemoryStream(stream: MutableList<Pair<Request, Response>>, shouldStore: (HttpMessage) -> Boolean = { true }): Sink

Serialises HTTP traffic to Memory in order.