requestWeight

fun requestWeight(block: suspend (ApplicationCall, key: Any) -> Int)

Sets a function that returns a weight of a request. Weight is used to calculate how many tokens are consumed by a request. By default, weight is always 1.