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

Class MiniFieldStorage

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

Like FieldStorage, for use when no file uploads are possible.

Source from the content-addressed store, hash-verified

260# =========================
261
262class MiniFieldStorage:
263
264 """Like FieldStorage, for use when no file uploads are possible."""
265
266 # Dummy attributes
267 filename = None
268 list = None
269 type = None
270 file = None
271 type_options = {}
272 disposition = None
273 disposition_options = {}
274 headers = {}
275
276 def __init__(self, name, value):
277 """Constructor from field name and value."""
278 self.name = name
279 self.value = value
280 # self.file = StringIO(value)
281
282 def __repr__(self):
283 """Return printable representation."""
284 return "MiniFieldStorage(%r, %r)" % (self.name, self.value)
285
286
287class FieldStorage:

Callers 2

read_urlencodedMethod · 0.85
read_multiMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected