Refactor RequestManager.sendRequest