api

http4k / org.http4k.servirtium / ServirtiumServer / Recording

Recording

@JvmStatic @JvmOverloads 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.

Manipulations can be made to the requests and responses before they are stored.