(self, encoding)
| 135 | 'more complex parameters') |
| 136 | |
| 137 | def _gen_form_urlencoded(self, encoding): |
| 138 | # form data (x-www-form-urlencoded) |
| 139 | data = [] |
| 140 | for type_options, _, value in self._fields: |
| 141 | data.append((type_options['name'], value)) |
| 142 | |
| 143 | data = urlencode(data, doseq=True) |
| 144 | return data.encode(encoding) |
| 145 | |
| 146 | def _gen_form_data(self, *args, **kwargs): |
| 147 | """Encode a list of fields using the multipart/form-data MIME format""" |