Companion

object Companion

Functions

Link copied to clipboard
fun Recording(name: String, target: Uri, storageProvider: StorageProvider, options: InteractionOptions = Defaults, port: Int = 0, serverFn: (Int) -> ServerConfig = ::SunHttp, proxyClient: HttpHandler = ApacheClient()): ServirtiumServer

MiTM proxy server which sits in between the client and the target and stores traffic in the named Servirtium Markdown file.

Link copied to clipboard
fun Replay(name: String, storageProvider: StorageProvider, options: InteractionOptions = Defaults, port: Int = 0, serverFn: (Int) -> ServerConfig = ::SunHttp): ServirtiumServer

Replay server which will match and replay recorded traffic read from the named Servirtium Markdown file. Incoming requests can be manipulated to ensure that it matches the expected request.