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