withLocalFirst

fun Header.withLocalFirst(localFirst: Boolean = true): Header

Adds the local-first flag to the header.

Return

A new header with the local-first flag set

Parameters

localFirst

Whether to enable local-first routing (default: true)


fun <M : Message<out M, *>> M.withLocalFirst(localFirst: Boolean = true): M

Sets the local-first flag on this message.

Return

This message with the local-first flag set

Parameters

localFirst

Whether to enable local-first routing (default: true)