api

http4k / org.http4k.traffic

Package org.http4k.traffic

Types

Name Summary
ReadWriteCache Combined Read/Write storage models, optimised for retrieval.interface ReadWriteCache : Sink, Source
ReadWriteStream Combined Read/Write storage models, optimised for replay.interface ReadWriteStream : Sink, Replay
Replay Provides a stream of traffic for replaying purposes.interface Replay
Responder Provides HTTP Handlers which respond using pre-stored Requests.object Responder
Sink Consumes HTTP traffic for storage.interface Sink
Source Tries to retrieve a stored response for a given request.interface Source

Functions

Name Summary
replayingMatchingContent fun Replay.replayingMatchingContent(manipulations: (Request) -> Request = { it }): HttpHandler

Companion Object Functions

Name Summary
Servirtium Write HTTP traffic to disk in Servirtium markdown format.fun Sink.Companion.Servirtium(target: Consumer<ByteArray>, options: InteractionOptions): Sink
Read HTTP traffic from disk in Servirtium markdown format.fun Replay.Companion.Servirtium(output: Supplier<ByteArray>, options: InteractionOptions = Defaults): Replay