webContents: providing header details with response event

This commit is contained in:
deepak1556 2015-05-20 21:24:59 +05:30
parent 30d815e28f
commit c22b138b67
2 changed files with 4 additions and 2 deletions

View file

@ -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(

View file

@ -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']