withAliases

fun withAliases(request: ServerRequest, aliases: IdentityHeaderAliases)

Gives request a route identity with aliases when its handler was invoked outside a materialized router (a downstream module calling a command handler directly, say), so the header aliases still apply; a request routed by the router keeps the identity its route was materialized with.