MCPcopy
hub / github.com/aio-libs/aiohttp / _gen_form_urlencoded

Method _gen_form_urlencoded

aiohttp/helpers.py:137–144  ·  view source on GitHub ↗
(self, encoding)

Source from the content-addressed store, hash-verified

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"""

Callers 1

__call__Method · 0.95

Calls 2

appendMethod · 0.80
encodeMethod · 0.80

Tested by

no test coverage detected