as described by @vkrause in https://www.volkerkrause.eu/2022/11/19/qt-qnetworkaccessmanager-best-practices.html