getEmail

fun Parameters.getEmail(name: String): Email

Extracts an Email from Ktor Parameters by the given parameter name.

The value is normalized with toResendEmail, so an address read from a request compares equal to the same address from any other source.

Return

the normalized Email value, or EMPTY_EMAIL if the parameter is absent.

Parameters

name

the parameter key to look up.