http4k / org.http4k.chaos / kotlin.Function1
Name | Summary |
---|---|
and | infix fun Trigger .and(that: Trigger ): Trigger |
asFilter | Converts this chaos stage to a standard http4k Filter.fun Stage .asFilter(): Filter |
not | operator fun Trigger .not(): ( Request ) -> Boolean |
or | infix fun Trigger .or(that: Trigger ): Trigger |
then | Chain the next ChaosBehaviour to apply when this stage is finished.fun Stage .then(nextStage: Stage ): Stage |
until | Stop applying the ChaosBehaviour of this stage when the ChaosTrigger fires.fun Stage .until(trigger: Trigger ): Stage |
withChaosApi | 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.fun HttpHandler .withChaosApi(engine: ChaosEngine = ChaosEngine(), security: Security = NoSecurity, controlsPath: String = "/chaos", openApiPath: String = "", corsPolicy: CorsPolicy = UnsafeGlobalPermissive, clock: Clock = Clock.systemUTC(), apiName: String = "http4k"): RoutingHttpHandler |