Extend NetworkDeferred data
There are situations where one needs access to more information like the HTTP status code (especially when the request failed, i.e. the promise is rejected).
Therefore, this MR adds the QNetworkReply
to the RequestData
struct and the RequestData
to the Error
struct.
Additionally, NetworkDeferred
now detects when the QNetworkReply
is destroyed and rejects itself.