webContents: providing header details with response event
This commit is contained in:
parent
30d815e28f
commit
c22b138b67
2 changed files with 4 additions and 2 deletions
|
@ -316,7 +316,8 @@ void WebContents::DidGetResourceResponseStart(
|
||||||
details.original_url,
|
details.original_url,
|
||||||
details.http_response_code,
|
details.http_response_code,
|
||||||
details.method,
|
details.method,
|
||||||
details.referrer);
|
details.referrer,
|
||||||
|
details.header);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebContents::DidGetRedirectForResourceRequest(
|
void WebContents::DidGetRedirectForResourceRequest(
|
||||||
|
|
|
@ -10,7 +10,8 @@ WEB_VIEW_EVENTS =
|
||||||
'did-start-loading': []
|
'did-start-loading': []
|
||||||
'did-stop-loading': []
|
'did-stop-loading': []
|
||||||
'did-get-response-details': ['status', 'newUrl', 'originalUrl',
|
'did-get-response-details': ['status', 'newUrl', 'originalUrl',
|
||||||
'httpResponseCode', 'requestMethod', 'referrer']
|
'httpResponseCode', 'requestMethod', 'referrer',
|
||||||
|
'headers']
|
||||||
'did-get-redirect-request': ['oldUrl', 'newUrl', 'isMainFrame']
|
'did-get-redirect-request': ['oldUrl', 'newUrl', 'isMainFrame']
|
||||||
'dom-ready': []
|
'dom-ready': []
|
||||||
'console-message': ['level', 'message', 'line', 'sourceId']
|
'console-message': ['level', 'message', 'line', 'sourceId']
|
||||||
|
|
Loading…
Reference in a new issue