api

http4k / org.http4k.servirtium / ServirtiumServer

ServirtiumServer

interface ServirtiumServer : Http4kServer, InteractionControl

Companion Object Functions

Name Summary
Recording MiTM proxy server which sits in between the client and the target and stores traffic in the named Servirtium Markdown file.fun Recording(name: String, target: Uri, storageProvider: StorageProvider, options: InteractionOptions = Defaults, port: Int = 0, serverFn: (Int) -> ServerConfig = ::SunHttp, proxyClient: HttpHandler = ApacheClient()): ServirtiumServer
Replay 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.fun Replay(name: String, storageProvider: StorageProvider, options: InteractionOptions = Defaults, port: Int = 0, serverFn: (Int) -> ServerConfig = ::SunHttp): ServirtiumServer