eric7/Documentation/Source/eric7.Plugins.UiExtensionPlugins.Translator.TranslatorRequest.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorRequest</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>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.Plugins.UiExtensionPlugins.Translator.TranslatorRequest</h1>
24
25 <p>
26 Module implementing a synchronous network request handler for translation
27 requests.
28 </p>
29 <h3>Global Attributes</h3>
30
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Classes</h3>
35
36 <table>
37
38 <tr>
39 <td><a href="#TranslatorRequest">TranslatorRequest</a></td>
40 <td>Class implementing a synchronous network request handler for translation requests.</td>
41 </tr>
42 </table>
43 <h3>Functions</h3>
44
45 <table>
46 <tr><td>None</td></tr>
47 </table>
48 <hr />
49 <hr />
50 <a NAME="TranslatorRequest" ID="TranslatorRequest"></a>
51 <h2>TranslatorRequest</h2>
52
53 <p>
54 Class implementing a synchronous network request handler for translation
55 requests.
56 </p>
57 <h3>Derived from</h3>
58 QObject
59 <h3>Class Attributes</h3>
60
61 <table>
62 <tr><td>None</td></tr>
63 </table>
64 <h3>Class Methods</h3>
65
66 <table>
67 <tr><td>None</td></tr>
68 </table>
69 <h3>Methods</h3>
70
71 <table>
72
73 <tr>
74 <td><a href="#TranslatorRequest.__init__">TranslatorRequest</a></td>
75 <td>Constructor</td>
76 </tr>
77 <tr>
78 <td><a href="#TranslatorRequest.get">get</a></td>
79 <td>Public method to issue a GET request.</td>
80 </tr>
81 <tr>
82 <td><a href="#TranslatorRequest.post">post</a></td>
83 <td>Public method to issue a POST request.</td>
84 </tr>
85 </table>
86 <h3>Static Methods</h3>
87
88 <table>
89 <tr><td>None</td></tr>
90 </table>
91
92 <a NAME="TranslatorRequest.__init__" ID="TranslatorRequest.__init__"></a>
93 <h4>TranslatorRequest (Constructor)</h4>
94 <b>TranslatorRequest</b>(<i>parent=None</i>)
95
96 <p>
97 Constructor
98 </p>
99 <dl>
100
101 <dt><i>parent</i></dt>
102 <dd>
103 reference to the parent object (QObject)
104 </dd>
105 </dl>
106 <a NAME="TranslatorRequest.get" ID="TranslatorRequest.get"></a>
107 <h4>TranslatorRequest.get</h4>
108 <b>get</b>(<i>requestUrl, extraHeaders=None</i>)
109
110 <p>
111 Public method to issue a GET request.
112 </p>
113 <dl>
114
115 <dt><i>requestUrl</i></dt>
116 <dd>
117 URL of the request (QUrl)
118 </dd>
119 <dt><i>extraHeaders</i></dt>
120 <dd>
121 list of tuples of additional headers giving
122 header name (string) and header value (string)
123 </dd>
124 </dl>
125 <dl>
126 <dt>Return:</dt>
127 <dd>
128 server response (QByteArray) or error message (string)
129 </dd>
130 </dl>
131 <a NAME="TranslatorRequest.post" ID="TranslatorRequest.post"></a>
132 <h4>TranslatorRequest.post</h4>
133 <b>post</b>(<i>requestUrl, requestData, dataType="form", extraHeaders=None</i>)
134
135 <p>
136 Public method to issue a POST request.
137 </p>
138 <dl>
139
140 <dt><i>requestUrl</i></dt>
141 <dd>
142 URL of the request (QUrl)
143 </dd>
144 <dt><i>requestData</i></dt>
145 <dd>
146 data of the request (QByteArray)
147 </dd>
148 <dt><i>dataType</i></dt>
149 <dd>
150 type of the request data (string)
151 </dd>
152 <dt><i>extraHeaders</i></dt>
153 <dd>
154 list of tuples of additional headers giving
155 header name (string) and header value (string)
156 </dd>
157 </dl>
158 <dl>
159 <dt>Return:</dt>
160 <dd>
161 tuple of server response (string) and flag indicating
162 success (boolean)
163 </dd>
164 </dl>
165 <div align="right"><a href="#top">Up</a></div>
166 <hr />
167 </body></html>

eric ide

mercurial