MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read_urlencoded

Method read_urlencoded

tools/python-3.11.9-amd64/Lib/cgi.py:596–610  ·  view source on GitHub ↗

Internal: read data in query string format.

(self)

Source from the content-addressed store, hash-verified

594 return bool(self.list)
595
596 def read_urlencoded(self):
597 """Internal: read data in query string format."""
598 qs = self.fp.read(self.length)
599 if not isinstance(qs, bytes):
600 raise ValueError("%s should return bytes, got %s" \
601 % (self.fp, type(qs).__name__))
602 qs = qs.decode(self.encoding, self.errors)
603 if self.qs_on_post:
604 qs += '&' + self.qs_on_post
605 query = urllib.parse.parse_qsl(
606 qs, self.keep_blank_values, self.strict_parsing,
607 encoding=self.encoding, errors=self.errors,
608 max_num_fields=self.max_num_fields, separator=self.separator)
609 self.list = [MiniFieldStorage(key, value) for key, value in query]
610 self.skip_lines()
611
612 FieldStorageClass = None
613

Callers 1

__init__Method · 0.95

Calls 5

skip_linesMethod · 0.95
MiniFieldStorageClass · 0.85
typeClass · 0.50
readMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected