mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
webContents: providing header details with response event
This commit is contained in:
@@ -316,7 +316,8 @@ void WebContents::DidGetResourceResponseStart(
|
||||
details.original_url,
|
||||
details.http_response_code,
|
||||
details.method,
|
||||
details.referrer);
|
||||
details.referrer,
|
||||
details.header);
|
||||
}
|
||||
|
||||
void WebContents::DidGetRedirectForResourceRequest(
|
||||
|
||||
@@ -10,7 +10,8 @@ WEB_VIEW_EVENTS =
|
||||
'did-start-loading': []
|
||||
'did-stop-loading': []
|
||||
'did-get-response-details': ['status', 'newUrl', 'originalUrl',
|
||||
'httpResponseCode', 'requestMethod', 'referrer']
|
||||
'httpResponseCode', 'requestMethod', 'referrer',
|
||||
'headers']
|
||||
'did-get-redirect-request': ['oldUrl', 'newUrl', 'isMainFrame']
|
||||
'dom-ready': []
|
||||
'console-message': ['level', 'message', 'line', 'sourceId']
|
||||
|
||||
Reference in New Issue
Block a user