withAttributes

fun withAttributes(attributesConsumer: (MutableMap<String, Any>) -> Unit)

Manipulate the attributes of the last route built with the given consumer.

The map provided to the consumer is "live", so that the consumer can be used to overwrite existing attributes, remove attributes, or use any of the other MutableMap methods.

Since

6.0

Parameters

attributesConsumer

a function that consumes the attributes map