ktor-locations / io.ktor.locations / io.ktor.application.ApplicationCall / locationOrNull

locationOrNull

inline fun <reified T : Any> ApplicationCall.locationOrNull(): T

Retrieves the current call's location or null if it is not available (request is not handled by a location class), or not yet available (invoked too early before the locations feature takes place).