Performance improvements

`requestName` should have an explicit type.

We should also avoid changing the public API of this class if possible, otherwise we have to bump the major version according to the semver rules. People might have been calling getMapping before and expecting it to return something (as it used to). This change will now cause compile time errors and change this behaviour.