Resource.map() now passes Request to the mapper function