api

http4k / org.http4k.chaos / ChaosBehaviours

ChaosBehaviours

object ChaosBehaviours (source)

Types

Name Summary
BlockThread object BlockThread
Blocks the current thread.
EatMemory object EatMemory
Allocates memory in a busy loop until an OOM occurs.
KillProcess object KillProcess
System exits from the process.
Latency object Latency
Blocks the thread for a random amount of time within the allocated range.
NoBody object NoBody
Strips the entire body from a response.
None object None
Does absolutely nothing.
ReturnStatus object ReturnStatus
Returns an empty response with the appropriate status.
SnipBody object SnipBody
Strips the body from a response to a particular length.
SnipRequestBody object SnipRequestBody
Strips the body from a request to a particular length.
StackOverflow object StackOverflow
Allocates memory in a busy loop until an OOM occurs.
ThrowException object ThrowException
Throws the appropriate exception.
Variable class Variable : Behaviour
Provide a means of modifying a ChaosBehaviour at runtime.

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T