Adding a callback to the HttpRequest.run method