Explanation of arguments


When i read about webContents’ apis, I did not quite understand the explanation of ‘did-get-response-detail’.

There are three arguments of it (status, newUrl, originalUrl) which I’m not sure what they stand for. Could anyone explain? The status of what? What is the difference between newUrl and originalUrl?

I’m a fresh user of electron, thanks a lot


The documentation for the event is here:


The event, to my understanding, is a signal that an HTTP response was received. So I would assume that status is the HTTP status of the response. But I haven’t used the API, so I don’t know for certain.


Yeah, I got that. Thanks~