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

branch
eric7
changeset 9148
b31f0d894b55
parent 8596
d64760b2da50
equal deleted inserted replaced
9147:bbf3af40c223 9148:b31f0d894b55
82 <p> 82 <p>
83 Constructor 83 Constructor
84 </p> 84 </p>
85 <dl> 85 <dl>
86 86
87 <dt><i>parent</i></dt> 87 <dt><i>parent</i> (QObject)</dt>
88 <dd> 88 <dd>
89 reference to the parent object (QObject) 89 reference to the parent object
90 </dd> 90 </dd>
91 </dl> 91 </dl>
92 <a NAME="TranslatorRequest.get" ID="TranslatorRequest.get"></a> 92 <a NAME="TranslatorRequest.get" ID="TranslatorRequest.get"></a>
93 <h4>TranslatorRequest.get</h4> 93 <h4>TranslatorRequest.get</h4>
94 <b>get</b>(<i>requestUrl, extraHeaders=None</i>) 94 <b>get</b>(<i>requestUrl, extraHeaders=None</i>)
96 <p> 96 <p>
97 Public method to issue a GET request. 97 Public method to issue a GET request.
98 </p> 98 </p>
99 <dl> 99 <dl>
100 100
101 <dt><i>requestUrl</i></dt> 101 <dt><i>requestUrl</i> (QUrl)</dt>
102 <dd> 102 <dd>
103 URL of the request (QUrl) 103 URL of the request
104 </dd> 104 </dd>
105 <dt><i>extraHeaders</i></dt> 105 <dt><i>extraHeaders</i> (tuple of (bytes, bytes))</dt>
106 <dd> 106 <dd>
107 list of tuples of additional headers giving 107 list of tuples of additional headers giving
108 header name (string) and header value (string) 108 header name and header value
109 </dd> 109 </dd>
110 </dl> 110 </dl>
111 <dl> 111 <dl>
112 <dt>Return:</dt> 112 <dt>Return:</dt>
113 <dd> 113 <dd>
114 server response (QByteArray) or error message (string) 114 server response or an error message and a success flag
115 </dd>
116 </dl>
117 <dl>
118 <dt>Return Type:</dt>
119 <dd>
120 tuple of (QByteArray or str, bool)
115 </dd> 121 </dd>
116 </dl> 122 </dl>
117 <a NAME="TranslatorRequest.post" ID="TranslatorRequest.post"></a> 123 <a NAME="TranslatorRequest.post" ID="TranslatorRequest.post"></a>
118 <h4>TranslatorRequest.post</h4> 124 <h4>TranslatorRequest.post</h4>
119 <b>post</b>(<i>requestUrl, requestData, dataType="form", extraHeaders=None</i>) 125 <b>post</b>(<i>requestUrl, requestData, dataType="form", extraHeaders=None</i>)
121 <p> 127 <p>
122 Public method to issue a POST request. 128 Public method to issue a POST request.
123 </p> 129 </p>
124 <dl> 130 <dl>
125 131
126 <dt><i>requestUrl</i></dt> 132 <dt><i>requestUrl</i> (QUrl)</dt>
127 <dd> 133 <dd>
128 URL of the request (QUrl) 134 URL of the request
129 </dd> 135 </dd>
130 <dt><i>requestData</i></dt> 136 <dt><i>requestData</i> (QByteArray)</dt>
131 <dd> 137 <dd>
132 data of the request (QByteArray) 138 data of the request
133 </dd> 139 </dd>
134 <dt><i>dataType</i></dt> 140 <dt><i>dataType</i> (str)</dt>
135 <dd> 141 <dd>
136 type of the request data (string) 142 type of the request data
137 </dd> 143 </dd>
138 <dt><i>extraHeaders</i></dt> 144 <dt><i>extraHeaders</i> (list of tuple of (bytes, bytes))</dt>
139 <dd> 145 <dd>
140 list of tuples of additional headers giving 146 list of tuples of additional headers giving
141 header name (string) and header value (string) 147 header name and header value
142 </dd> 148 </dd>
143 </dl> 149 </dl>
144 <dl> 150 <dl>
145 <dt>Return:</dt> 151 <dt>Return:</dt>
146 <dd> 152 <dd>
147 tuple of server response (string) and flag indicating 153 tuple of server response (string) and flag indicating
148 success (boolean) 154 success (boolean)
149 </dd> 155 </dd>
150 </dl> 156 </dl>
157 <dl>
158 <dt>Return Type:</dt>
159 <dd>
160 tuple of (str, bool)
161 </dd>
162 </dl>
151 <div align="right"><a href="#top">Up</a></div> 163 <div align="right"><a href="#top">Up</a></div>
152 <hr /> 164 <hr />
153 </body></html> 165 </body></html>

eric ide

mercurial