2 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.internal.backends.chrome_inspector.inspector_network
</title>
5 </head><body bgcolor=
"#f0f0f8">
7 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"heading">
9 <td valign=bottom
> <br>
10 <font color=
"#ffffff" face=
"helvetica, arial"> <br><big><big><strong><a href=
"telemetry.html"><font color=
"#ffffff">telemetry
</font></a>.
<a href=
"telemetry.internal.html"><font color=
"#ffffff">internal
</font></a>.
<a href=
"telemetry.internal.backends.html"><font color=
"#ffffff">backends
</font></a>.
<a href=
"telemetry.internal.backends.chrome_inspector.html"><font color=
"#ffffff">chrome_inspector
</font></a>.inspector_network
</strong></big></big></font></td
11 ><td align=right valign=bottom
12 ><font color=
"#ffffff" face=
"helvetica, arial"><a href=
".">index
</a><br><a href=
"../telemetry/internal/backends/chrome_inspector/inspector_network.py">telemetry/internal/backends/chrome_inspector/inspector_network.py
</a></font></td></tr></table>
13 <p><tt>#
Copyright
2013 The
Chromium
Authors.
All
rights
reserved.
<br>
14 #
Use
of
this
source
code
is
governed
by
a
BSD-style
license
that
can
be
<br>
15 #
found
in
the
LICENSE
file.
</tt></p>
17 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
18 <tr bgcolor=
"#aa55cc">
19 <td colspan=
3 valign=bottom
> <br>
20 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Modules
</strong></big></font></td></tr>
22 <tr><td bgcolor=
"#aa55cc"><tt> </tt></td><td> </td>
23 <td width=
"100%"><table width=
"100%" summary=
"list"><tr><td width=
"25%" valign=top
><a href=
"telemetry.core.exceptions.html">telemetry.core.exceptions
</a><br>
24 </td><td width=
"25%" valign=top
><a href=
"logging.html">logging
</a><br>
25 </td><td width=
"25%" valign=top
></td><td width=
"25%" valign=top
></td></tr></table></td></tr></table><p>
26 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
27 <tr bgcolor=
"#ee77aa">
28 <td colspan=
3 valign=bottom
> <br>
29 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Classes
</strong></big></font></td></tr>
31 <tr><td bgcolor=
"#ee77aa"><tt> </tt></td><td> </td>
33 <dt><font face=
"helvetica, arial"><a href=
"__builtin__.html#object">__builtin__.object
</a>
36 <dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.backends.chrome_inspector.inspector_network.html#InspectorNetwork">InspectorNetwork
</a>
37 </font></dt><dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.backends.chrome_inspector.inspector_network.html#InspectorNetworkResponseData">InspectorNetworkResponseData
</a>
38 </font></dt><dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.backends.chrome_inspector.inspector_network.html#TimelineRecorder">TimelineRecorder
</a>
41 <dt><font face=
"helvetica, arial"><a href=
"exceptions.html#Exception">exceptions.Exception
</a>(
<a href=
"exceptions.html#BaseException">exceptions.BaseException
</a>)
44 <dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.backends.chrome_inspector.inspector_network.html#InspectorNetworkException">InspectorNetworkException
</a>
49 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
50 <tr bgcolor=
"#ffc8d8">
51 <td colspan=
3 valign=bottom
> <br>
52 <font color=
"#000000" face=
"helvetica, arial"><a name=
"InspectorNetwork">class
<strong>InspectorNetwork
</strong></a>(
<a href=
"__builtin__.html#object">__builtin__.object
</a>)
</font></td></tr>
54 <tr><td bgcolor=
"#ffc8d8"><tt> </tt></td><td> </td>
55 <td width=
"100%">Methods defined here:
<br>
56 <dl><dt><a name=
"InspectorNetwork-ClearCache"><strong>ClearCache
</strong></a>(self, timeout
<font color=
"#909090">=
60</font>)
</dt><dd><tt>Clears
the
browser's
disk
and
memory
cache.
</tt></dd></dl>
58 <dl><dt><a name=
"InspectorNetwork-ClearResponseData"><strong>ClearResponseData
</strong></a>(self)
</dt><dd><tt>Clears
recorded
HTTP
responses.
</tt></dd></dl>
60 <dl><dt><a name=
"InspectorNetwork-GetHTTPResponseBody"><strong>GetHTTPResponseBody
</strong></a>(self, request_id, timeout
<font color=
"#909090">=
60</font>)
</dt></dl>
62 <dl><dt><a name=
"InspectorNetwork-GetResponseData"><strong>GetResponseData
</strong></a>(self)
</dt><dd><tt>Returns
all
recorded
HTTP
responses.
</tt></dd></dl>
64 <dl><dt><a name=
"InspectorNetwork-HTTPResponseServedFromCache"><strong>HTTPResponseServedFromCache
</strong></a>(self, request_id)
</dt></dl>
66 <dl><dt><a name=
"InspectorNetwork-StartMonitoringNetwork"><strong>StartMonitoringNetwork
</strong></a>(self)
</dt><dd><tt>Starts
monitoring
network
notifications
and
recording
HTTP
responses.
</tt></dd></dl>
68 <dl><dt><a name=
"InspectorNetwork-StopMonitoringNetwork"><strong>StopMonitoringNetwork
</strong></a>(self)
</dt><dd><tt>Stops
monitoring
network
notifications
and
recording
HTTP
responses.
</tt></dd></dl>
70 <dl><dt><a name=
"InspectorNetwork-__init__"><strong>__init__
</strong></a>(self, inspector_websocket)
</dt></dl>
73 Data descriptors defined here:
<br>
74 <dl><dt><strong>__dict__
</strong></dt>
75 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
77 <dl><dt><strong>__weakref__
</strong></dt>
78 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
80 <dl><dt><strong>timeline_recorder
</strong></dt>
82 </td></tr></table> <p>
83 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
84 <tr bgcolor=
"#ffc8d8">
85 <td colspan=
3 valign=bottom
> <br>
86 <font color=
"#000000" face=
"helvetica, arial"><a name=
"InspectorNetworkException">class
<strong>InspectorNetworkException
</strong></a>(
<a href=
"exceptions.html#Exception">exceptions.Exception
</a>)
</font></td></tr>
88 <tr><td bgcolor=
"#ffc8d8"><tt> </tt></td><td> </td>
89 <td width=
"100%"><dl><dt>Method resolution order:
</dt>
90 <dd><a href=
"telemetry.internal.backends.chrome_inspector.inspector_network.html#InspectorNetworkException">InspectorNetworkException
</a></dd>
91 <dd><a href=
"exceptions.html#Exception">exceptions.Exception
</a></dd>
92 <dd><a href=
"exceptions.html#BaseException">exceptions.BaseException
</a></dd>
93 <dd><a href=
"__builtin__.html#object">__builtin__.object
</a></dd>
96 Data descriptors defined here:
<br>
97 <dl><dt><strong>__weakref__
</strong></dt>
98 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
101 Methods inherited from
<a href=
"exceptions.html#Exception">exceptions.Exception
</a>:
<br>
102 <dl><dt><a name=
"InspectorNetworkException-__init__"><strong>__init__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__init__">__init__
</a>(...)
initializes
x;
see
help(type(x))
for
signature
</tt></dd></dl>
105 Data and other attributes inherited from
<a href=
"exceptions.html#Exception">exceptions.Exception
</a>:
<br>
106 <dl><dt><strong>__new__
</strong> =
<built-in method __new__ of type object
><dd><tt>T.
<a href=
"#InspectorNetworkException-__new__">__new__
</a>(S,
...)
-
> a
new
<a href=
"__builtin__.html#object">object
</a> with
type
S,
a
subtype
of
T
</tt></dl>
109 Methods inherited from
<a href=
"exceptions.html#BaseException">exceptions.BaseException
</a>:
<br>
110 <dl><dt><a name=
"InspectorNetworkException-__delattr__"><strong>__delattr__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__delattr__">__delattr__
</a>('name')
<==
> del
x.name
</tt></dd></dl>
112 <dl><dt><a name=
"InspectorNetworkException-__getattribute__"><strong>__getattribute__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__getattribute__">__getattribute__
</a>('name')
<==
> x.name
</tt></dd></dl>
114 <dl><dt><a name=
"InspectorNetworkException-__getitem__"><strong>__getitem__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__getitem__">__getitem__
</a>(y)
<==
> x[y]
</tt></dd></dl>
116 <dl><dt><a name=
"InspectorNetworkException-__getslice__"><strong>__getslice__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__getslice__">__getslice__
</a>(i,
j)
<==
> x[i:j]
<br>
118 Use
of
negative
indices
is
not
supported.
</tt></dd></dl>
120 <dl><dt><a name=
"InspectorNetworkException-__reduce__"><strong>__reduce__
</strong></a>(...)
</dt></dl>
122 <dl><dt><a name=
"InspectorNetworkException-__repr__"><strong>__repr__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__repr__">__repr__
</a>()
<==
> repr(x)
</tt></dd></dl>
124 <dl><dt><a name=
"InspectorNetworkException-__setattr__"><strong>__setattr__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__setattr__">__setattr__
</a>('name',
value)
<==
> x.name
=
value
</tt></dd></dl>
126 <dl><dt><a name=
"InspectorNetworkException-__setstate__"><strong>__setstate__
</strong></a>(...)
</dt></dl>
128 <dl><dt><a name=
"InspectorNetworkException-__str__"><strong>__str__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#InspectorNetworkException-__str__">__str__
</a>()
<==
> str(x)
</tt></dd></dl>
130 <dl><dt><a name=
"InspectorNetworkException-__unicode__"><strong>__unicode__
</strong></a>(...)
</dt></dl>
133 Data descriptors inherited from
<a href=
"exceptions.html#BaseException">exceptions.BaseException
</a>:
<br>
134 <dl><dt><strong>__dict__
</strong></dt>
136 <dl><dt><strong>args
</strong></dt>
138 <dl><dt><strong>message
</strong></dt>
140 </td></tr></table> <p>
141 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
142 <tr bgcolor=
"#ffc8d8">
143 <td colspan=
3 valign=bottom
> <br>
144 <font color=
"#000000" face=
"helvetica, arial"><a name=
"InspectorNetworkResponseData">class
<strong>InspectorNetworkResponseData
</strong></a>(
<a href=
"__builtin__.html#object">__builtin__.object
</a>)
</font></td></tr>
146 <tr><td bgcolor=
"#ffc8d8"><tt> </tt></td><td> </td>
147 <td width=
"100%">Methods defined here:
<br>
148 <dl><dt><a name=
"InspectorNetworkResponseData-AsTimelineEvent"><strong>AsTimelineEvent
</strong></a>(self)
</dt></dl>
150 <dl><dt><a name=
"InspectorNetworkResponseData-GetBody"><strong>GetBody
</strong></a>(self, timeout
<font color=
"#909090">=
60</font>)
</dt></dl>
152 <dl><dt><a name=
"InspectorNetworkResponseData-GetHeader"><strong>GetHeader
</strong></a>(self, name)
</dt></dl>
154 <dl><dt><a name=
"InspectorNetworkResponseData-__init__"><strong>__init__
</strong></a>(self, inspector_network, params)
</dt></dl>
156 <dl><dt><a name=
"InspectorNetworkResponseData-status_text"><strong>status_text
</strong></a>(self)
</dt></dl>
159 Static methods defined here:
<br>
160 <dl><dt><a name=
"InspectorNetworkResponseData-FromTimelineEvent"><strong>FromTimelineEvent
</strong></a>(event)
</dt></dl>
163 Data descriptors defined here:
<br>
164 <dl><dt><strong>__dict__
</strong></dt>
165 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
167 <dl><dt><strong>__weakref__
</strong></dt>
168 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
170 <dl><dt><strong>headers
</strong></dt>
172 <dl><dt><strong>request_headers
</strong></dt>
174 <dl><dt><strong>request_id
</strong></dt>
176 <dl><dt><strong>served_from_cache
</strong></dt>
178 <dl><dt><strong>status
</strong></dt>
180 <dl><dt><strong>timestamp
</strong></dt>
182 <dl><dt><strong>timing
</strong></dt>
184 <dl><dt><strong>url
</strong></dt>
186 </td></tr></table> <p>
187 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
188 <tr bgcolor=
"#ffc8d8">
189 <td colspan=
3 valign=bottom
> <br>
190 <font color=
"#000000" face=
"helvetica, arial"><a name=
"TimelineRecorder">class
<strong>TimelineRecorder
</strong></a>(
<a href=
"__builtin__.html#object">__builtin__.object
</a>)
</font></td></tr>
192 <tr><td bgcolor=
"#ffc8d8"><tt> </tt></td><td> </td>
193 <td width=
"100%">Methods defined here:
<br>
194 <dl><dt><a name=
"TimelineRecorder-Start"><strong>Start
</strong></a>(self)
</dt></dl>
196 <dl><dt><a name=
"TimelineRecorder-Stop"><strong>Stop
</strong></a>(self)
</dt></dl>
198 <dl><dt><a name=
"TimelineRecorder-__init__"><strong>__init__
</strong></a>(self, inspector_network)
</dt></dl>
201 Data descriptors defined here:
<br>
202 <dl><dt><strong>__dict__
</strong></dt>
203 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
205 <dl><dt><strong>__weakref__
</strong></dt>
206 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
208 </td></tr></table></td></tr></table>