http4k / org.http4k.chaos / withChaosApi
fun
RoutingHttpHandler
.withChaosApi(engine:
ChaosEngine
= ChaosEngine(), security:
Security
= NoSecurity, controlsPath:
String
= "/chaos", openApiPath:
String
= "", corsPolicy:
CorsPolicy
= UnsafeGlobalPermissive, clock:
Clock
= Clock.systemUTC(), apiName:
String
= "http4k"):
RoutingHttpHandler
Mixin the set of remote Chaos API endpoints to a standard HttpHandler, using the passed ChaosStage. Optionally a Security can be passed to limit access to the chaos controls.