Explanation of arguments


#1

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


#2

The documentation for the event is here:

http://electron.atom.io/docs/latest/api/web-contents/#event-39-did-get-response-details-39

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.


#3

Yeah, I got that. Thanks~