installServerEnvironment

fun Application.installServerEnvironment(serverEnvironment: Deferred<ServerEnvironment>)

Installs an interceptor that injects ServerEnvironment in the coroutine context for all other request handlers.

This method is public mostly for use in testing.