|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.E5Network.E5NetworkProxyFactory</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.E5Network.E5NetworkProxyFactory</h1> |
|
23 <p> |
|
24 Module implementing a network proxy factory. |
|
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="#E5NetworkProxyFactory">E5NetworkProxyFactory</a></td> |
|
34 <td>Class implementing a network proxy factory.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr> |
|
40 <td><a href="#proxyAuthenticationRequired">proxyAuthenticationRequired</a></td> |
|
41 <td>Module slot to handle a proxy authentication request.</td> |
|
42 </tr><tr> |
|
43 <td><a href="#schemeFromProxyType">schemeFromProxyType</a></td> |
|
44 <td>Module function to determine the scheme name from the proxy type.</td> |
|
45 </tr> |
|
46 </table> |
|
47 <hr /><hr /> |
|
48 <a NAME="E5NetworkProxyFactory" ID="E5NetworkProxyFactory"></a> |
|
49 <h2>E5NetworkProxyFactory</h2> |
|
50 <p> |
|
51 Class implementing a network proxy factory. |
|
52 </p> |
|
53 <h3>Derived from</h3> |
|
54 QNetworkProxyFactory |
|
55 <h3>Class Attributes</h3> |
|
56 <table> |
|
57 <tr><td>None</td></tr> |
|
58 </table> |
|
59 <h3>Class Methods</h3> |
|
60 <table> |
|
61 <tr><td>None</td></tr> |
|
62 </table> |
|
63 <h3>Methods</h3> |
|
64 <table> |
|
65 <tr> |
|
66 <td><a href="#E5NetworkProxyFactory.__init__">E5NetworkProxyFactory</a></td> |
|
67 <td>Constructor</td> |
|
68 </tr><tr> |
|
69 <td><a href="#E5NetworkProxyFactory.queryProxy">queryProxy</a></td> |
|
70 <td>Public method to determine a proxy for a given query.</td> |
|
71 </tr> |
|
72 </table> |
|
73 <h3>Static Methods</h3> |
|
74 <table> |
|
75 <tr><td>None</td></tr> |
|
76 </table> |
|
77 <a NAME="E5NetworkProxyFactory.__init__" ID="E5NetworkProxyFactory.__init__"></a> |
|
78 <h4>E5NetworkProxyFactory (Constructor)</h4> |
|
79 <b>E5NetworkProxyFactory</b>(<i></i>) |
|
80 <p> |
|
81 Constructor |
|
82 </p><a NAME="E5NetworkProxyFactory.queryProxy" ID="E5NetworkProxyFactory.queryProxy"></a> |
|
83 <h4>E5NetworkProxyFactory.queryProxy</h4> |
|
84 <b>queryProxy</b>(<i>query</i>) |
|
85 <p> |
|
86 Public method to determine a proxy for a given query. |
|
87 </p><dl> |
|
88 <dt><i>query</i></dt> |
|
89 <dd> |
|
90 reference to the query object (QNetworkProxyQuery) |
|
91 </dd> |
|
92 </dl><dl> |
|
93 <dt>Returns:</dt> |
|
94 <dd> |
|
95 list of proxies in order of preference (list of QNetworkProxy) |
|
96 </dd> |
|
97 </dl> |
|
98 <div align="right"><a href="#top">Up</a></div> |
|
99 <hr /><hr /> |
|
100 <a NAME="proxyAuthenticationRequired" ID="proxyAuthenticationRequired"></a> |
|
101 <h2>proxyAuthenticationRequired</h2> |
|
102 <b>proxyAuthenticationRequired</b>(<i>proxy, auth</i>) |
|
103 <p> |
|
104 Module slot to handle a proxy authentication request. |
|
105 </p><dl> |
|
106 <dt><i>proxy</i></dt> |
|
107 <dd> |
|
108 reference to the proxy object (QNetworkProxy) |
|
109 </dd><dt><i>auth</i></dt> |
|
110 <dd> |
|
111 reference to the authenticator object (QAuthenticator) |
|
112 </dd> |
|
113 </dl> |
|
114 <div align="right"><a href="#top">Up</a></div> |
|
115 <hr /><hr /> |
|
116 <a NAME="schemeFromProxyType" ID="schemeFromProxyType"></a> |
|
117 <h2>schemeFromProxyType</h2> |
|
118 <b>schemeFromProxyType</b>(<i>proxyType</i>) |
|
119 <p> |
|
120 Module function to determine the scheme name from the proxy type. |
|
121 </p><dl> |
|
122 <dt><i>proxyType</i></dt> |
|
123 <dd> |
|
124 type of the proxy (QNetworkProxy.ProxyType) |
|
125 </dd> |
|
126 </dl><dl> |
|
127 <dt>Returns:</dt> |
|
128 <dd> |
|
129 scheme (string, one of Http, Https, Ftp) |
|
130 </dd> |
|
131 </dl> |
|
132 <div align="right"><a href="#top">Up</a></div> |
|
133 <hr /> |
|
134 </body></html> |