http4k / org.http4k.traffic / ReadWriteStream
interface ReadWriteStream :
Sink
,
Replay
Combined Read/Write storage models, optimised for replay.
Name | Summary |
---|---|
Disk | Serialise and replay HTTP traffic to/from the FS in order.fun Disk(baseDir: String = ".", shouldStore: ( HttpMessage ) -> Boolean = { true }): ReadWriteStream |
Memory | Serialise and replay HTTP traffic to/from Memory in order.fun Memory(stream: MutableList < Pair < Request , Response >> = mutableListOf(), shouldStore: ( HttpMessage ) -> Boolean = { true }): ReadWriteStream |
Name | Summary |
---|---|
replayingMatchingContent | fun Replay .replayingMatchingContent(manipulations: ( Request ) -> Request = { it }): HttpHandler |