MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / forms

Method forms

21-async/mojifinder/bottle.py:1084–1093  ·  view source on GitHub ↗

Form values parsed from an `url-encoded` or `multipart/form-data` encoded POST or PUT request body. The result is returned as a :class:`FormsDict`. All keys and values are strings. File uploads are stored separately in :attr:`files`.

(self)

Source from the content-addressed store, hash-verified

1082
1083 @DictProperty('environ', 'bottle.request.forms', read_only=True)
1084 def forms(self):
1085 """ Form values parsed from an `url-encoded` or `multipart/form-data`
1086 encoded POST or PUT request body. The result is returned as a
1087 :class:`FormsDict`. All keys and values are strings. File uploads
1088 are stored separately in :attr:`files`. """
1089 forms = FormsDict()
1090 for name, item in self.POST.allitems():
1091 if not isinstance(item, FileUpload):
1092 forms[name] = item
1093 return forms
1094
1095 @DictProperty('environ', 'bottle.request.params', read_only=True)
1096 def params(self):

Callers

nothing calls this directly

Calls 2

FormsDictClass · 0.85
allitemsMethod · 0.80

Tested by

no test coverage detected