Setup

Class for a Setup. A Setup represents the setup of a module in the application.

Properties

Link copied to clipboard

The configuration for the module.

Link copied to clipboard
val httpClient: HttpClient

The HTTP client used in the application.

Link copied to clipboard

The logger used in the application.

Link copied to clipboard

The shared context of the application.

Link copied to clipboard

The workflow of the application.

Functions

Link copied to clipboard
fun init(block: suspend () -> Unit)

Adds an initialization block to the workflow.

Link copied to clipboard
fun next(block: suspend FlowContext.(ContinueNode, Request) -> Request)

Adds a next block to the workflow.

Link copied to clipboard
fun node(block: suspend FlowContext.(Node) -> Node)

Adds a node block to the workflow.

Link copied to clipboard
fun response(block: suspend FlowContext.(Response) -> Unit)

Adds a response block to the workflow.

Link copied to clipboard
fun signOff(block: suspend (Request) -> Request)

Adds a sign off block to the workflow.

Link copied to clipboard
fun start(block: suspend FlowContext.(Request) -> Request)

Adds a start block to the workflow.

Link copied to clipboard
fun success(block: suspend FlowContext.(SuccessNode) -> SuccessNode)

Adds a success block to the workflow.

Link copied to clipboard
fun transform(block: suspend FlowContext.(Response) -> Node)

Sets the transform block of the workflow.