OLD | NEW |
1 <p id="classSummary"> | 1 <p id="classSummary"> |
2 Use the <code>chrome.devtools.network</code> module to retrieve | 2 Use the <code>chrome.devtools.network</code> module to retrieve |
3 the information about network requests displayed by the Developer Tools | 3 the information about network requests displayed by the Developer Tools |
4 in the Network panel. | 4 in the Network panel. |
5 </p><p> | 5 </p><p> |
6 See <a href="devtools.html">DevTools APIs summary</a> for | 6 See <a href="devtools.html">DevTools APIs summary</a> for |
7 general introduction to using Developer Tools APIs</a>. | 7 general introduction to using Developer Tools APIs</a>. |
8 </p> | 8 </p> |
9 | 9 |
10 <h2>Overview</h2> | 10 <h2 id="overview">Overview</h2> |
11 | 11 |
12 <p> | 12 <p> |
13 Network requests information is represented in the HTTP Archive format | 13 Network requests information is represented in the HTTP Archive format |
14 (<em>HAR</em>). The description of HAR is outside of scope of this document, | 14 (<em>HAR</em>). The description of HAR is outside of scope of this document, |
15 please refer to <a href= | 15 please refer to <a href= |
16 "http://www.softwareishard.com/blog/har-12-spec/"> | 16 "http://www.softwareishard.com/blog/har-12-spec/"> |
17 HAR v1.2 Specification</a>. | 17 HAR v1.2 Specification</a>. |
18 </p><p> | 18 </p><p> |
19 In terms of HAR, the | 19 In terms of HAR, the |
20 <code>chrome.devtools.network.getHAR()</code> method returns | 20 <code>chrome.devtools.network.getHAR()</code> method returns |
(...skipping 22 matching lines...) Expand all Loading... |
43 if (request.response.bodySize > 40*1024) | 43 if (request.response.bodySize > 40*1024) |
44 chrome.experimental.devtools.console.addMessage( | 44 chrome.experimental.devtools.console.addMessage( |
45 chrome.experimental.devtools.console.Severity.Warning, | 45 chrome.experimental.devtools.console.Severity.Warning, |
46 "Large image: " + request.request.url); | 46 "Large image: " + request.request.url); |
47 }); | 47 }); |
48 </pre> | 48 </pre> |
49 | 49 |
50 <p> | 50 <p> |
51 You can find more examples that use this API in | 51 You can find more examples that use this API in |
52 <a href="samples.html#devtools.network">Samples</a>. | 52 <a href="samples.html#devtools.network">Samples</a>. |
53 </p> | 53 </p> |
OLD | NEW |