|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Helpviewer.Network.FollowRedirectReply</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Helpviewer.Network.FollowRedirectReply</h1> |
|
23 <p> |
|
24 Module implementing a network reply delegate allowing to check redirects. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#FollowRedirectReply">FollowRedirectReply</a></td> |
|
34 <td>Class implementing a network reply delegate allowing to check redirects.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="FollowRedirectReply" ID="FollowRedirectReply"></a> |
|
43 <h2>FollowRedirectReply</h2> |
|
44 <p> |
|
45 Class implementing a network reply delegate allowing to check redirects. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QObject |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#FollowRedirectReply.__init__">FollowRedirectReply</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#FollowRedirectReply.__replyFinished">__replyFinished</a></td> |
|
64 <td>Private slot handling the receipt of the requested data.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#FollowRedirectReply.close">close</a></td> |
|
67 <td>Public method to close the data stream.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#FollowRedirectReply.error">error</a></td> |
|
70 <td>Public method to get the error information.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#FollowRedirectReply.errorString">errorString</a></td> |
|
73 <td>Public method to get the error message.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#FollowRedirectReply.originalUrl">originalUrl</a></td> |
|
76 <td>Public method to get the original URL.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#FollowRedirectReply.readAll">readAll</a></td> |
|
79 <td>Public method to read all received data.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#FollowRedirectReply.reply">reply</a></td> |
|
82 <td>Public method to get the reply object.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#FollowRedirectReply.url">url</a></td> |
|
85 <td>Public method to get the final URL (after redirects).</td> |
|
86 </tr> |
|
87 </table> |
|
88 <h3>Static Methods</h3> |
|
89 <table> |
|
90 <tr><td>None</td></tr> |
|
91 </table> |
|
92 <a NAME="FollowRedirectReply.__init__" ID="FollowRedirectReply.__init__"></a> |
|
93 <h4>FollowRedirectReply (Constructor)</h4> |
|
94 <b>FollowRedirectReply</b>(<i>url, manager, maxRedirects=5</i>) |
|
95 <p> |
|
96 Constructor |
|
97 </p><dl> |
|
98 <dt><i>url</i></dt> |
|
99 <dd> |
|
100 URL to get (QUrl) |
|
101 </dd><dt><i>manager</i></dt> |
|
102 <dd> |
|
103 reference to the network access manager |
|
104 (QNetworkAccessManager) |
|
105 </dd><dt><i>maxRedirects=</i></dt> |
|
106 <dd> |
|
107 maximum allowed redirects (integer) |
|
108 </dd> |
|
109 </dl><a NAME="FollowRedirectReply.__replyFinished" ID="FollowRedirectReply.__replyFinished"></a> |
|
110 <h4>FollowRedirectReply.__replyFinished</h4> |
|
111 <b>__replyFinished</b>(<i></i>) |
|
112 <p> |
|
113 Private slot handling the receipt of the requested data. |
|
114 </p><a NAME="FollowRedirectReply.close" ID="FollowRedirectReply.close"></a> |
|
115 <h4>FollowRedirectReply.close</h4> |
|
116 <b>close</b>(<i></i>) |
|
117 <p> |
|
118 Public method to close the data stream. |
|
119 </p><a NAME="FollowRedirectReply.error" ID="FollowRedirectReply.error"></a> |
|
120 <h4>FollowRedirectReply.error</h4> |
|
121 <b>error</b>(<i></i>) |
|
122 <p> |
|
123 Public method to get the error information. |
|
124 </p><dl> |
|
125 <dt>Returns:</dt> |
|
126 <dd> |
|
127 error code (QNetworkReply.NetworkError) |
|
128 </dd> |
|
129 </dl><a NAME="FollowRedirectReply.errorString" ID="FollowRedirectReply.errorString"></a> |
|
130 <h4>FollowRedirectReply.errorString</h4> |
|
131 <b>errorString</b>(<i></i>) |
|
132 <p> |
|
133 Public method to get the error message. |
|
134 </p><dl> |
|
135 <dt>Returns:</dt> |
|
136 <dd> |
|
137 error message (string) |
|
138 </dd> |
|
139 </dl><a NAME="FollowRedirectReply.originalUrl" ID="FollowRedirectReply.originalUrl"></a> |
|
140 <h4>FollowRedirectReply.originalUrl</h4> |
|
141 <b>originalUrl</b>(<i></i>) |
|
142 <p> |
|
143 Public method to get the original URL. |
|
144 </p><dl> |
|
145 <dt>Returns:</dt> |
|
146 <dd> |
|
147 original URL (QUrl) |
|
148 </dd> |
|
149 </dl><a NAME="FollowRedirectReply.readAll" ID="FollowRedirectReply.readAll"></a> |
|
150 <h4>FollowRedirectReply.readAll</h4> |
|
151 <b>readAll</b>(<i></i>) |
|
152 <p> |
|
153 Public method to read all received data. |
|
154 </p><dl> |
|
155 <dt>Returns:</dt> |
|
156 <dd> |
|
157 received raw data (QByteArray) |
|
158 </dd> |
|
159 </dl><a NAME="FollowRedirectReply.reply" ID="FollowRedirectReply.reply"></a> |
|
160 <h4>FollowRedirectReply.reply</h4> |
|
161 <b>reply</b>(<i></i>) |
|
162 <p> |
|
163 Public method to get the reply object. |
|
164 </p><dl> |
|
165 <dt>Returns:</dt> |
|
166 <dd> |
|
167 reference to the reply object (QNetworkReply) |
|
168 </dd> |
|
169 </dl><a NAME="FollowRedirectReply.url" ID="FollowRedirectReply.url"></a> |
|
170 <h4>FollowRedirectReply.url</h4> |
|
171 <b>url</b>(<i></i>) |
|
172 <p> |
|
173 Public method to get the final URL (after redirects). |
|
174 </p><dl> |
|
175 <dt>Returns:</dt> |
|
176 <dd> |
|
177 final URL (QUrl) |
|
178 </dd> |
|
179 </dl> |
|
180 <div align="right"><a href="#top">Up</a></div> |
|
181 <hr /> |
|
182 </body></html> |