OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | |
2 <p id="classSummary"> | 1 <p id="classSummary"> |
3 Use the <code>chrome.devtools.network</code> module to retrieve | 2 Use the <code>chrome.devtools.network</code> module to retrieve |
4 the information about network requests displayed by the Developer Tools | 3 the information about network requests displayed by the Developer Tools |
5 in the Network panel. | 4 in the Network panel. |
6 </p><p> | 5 </p><p> |
7 See <a href="devtools.html">DevTools APIs summary</a> for | 6 See <a href="devtools.html">DevTools APIs summary</a> for |
8 general introduction to using Developer Tools APIs</a>. | 7 general introduction to using Developer Tools APIs</a>. |
9 </p> | 8 </p> |
10 | 9 |
11 <h2>Overview</h2> | 10 <h2>Overview</h2> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 if (request.response.bodySize > 40*1024) | 43 if (request.response.bodySize > 40*1024) |
45 chrome.experimental.devtools.console.addMessage( | 44 chrome.experimental.devtools.console.addMessage( |
46 chrome.experimental.devtools.console.Severity.Warning, | 45 chrome.experimental.devtools.console.Severity.Warning, |
47 "Large image: " + request.request.url); | 46 "Large image: " + request.request.url); |
48 }); | 47 }); |
49 </pre> | 48 </pre> |
50 | 49 |
51 <p> | 50 <p> |
52 You can find more examples that use this API in | 51 You can find more examples that use this API in |
53 <a href="samples.html#devtools.network">Samples</a>. | 52 <a href="samples.html#devtools.network">Samples</a>. |
54 </p> | 53 </p> |
55 | |
56 <!-- END AUTHORED CONTENT --> | |
OLD | NEW |