api

http4k / org.http4k.traffic / Replay

Replay

interface Replay (source)

Provides a stream of traffic for replaying purposes.

Functions

Name Summary
requests abstract fun requests(): Sequence<Request>
responses abstract fun responses(): Sequence<Response>

Companion Object Functions

Name Summary
DiskStream fun DiskStream(baseDir: String = "."): Replay
Provides a stream of pre-stored HTTP traffic from the FS.
MemoryStream fun MemoryStream(stream: MutableList<Pair<Request, Response>>): Replay
Provides a stream of pre-stored HTTP traffic from Memory.

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T

Inheritors

Name Summary
ReadWriteStream interface ReadWriteStream : Sink, Replay
Combined Read/Write storage models, optimised for replay.