Updated declaration of `sendRequest()` method