Parses the information from the environment as form data. :param environ: the WSGI environment to be used for parsing. :return: A tuple in the form ``(stream, form, files)``.
(self, environ: WSGIEnvironment)
| 192 | self.silent = silent |
| 193 | |
| 194 | def parse_from_environ(self, environ: WSGIEnvironment) -> t_parse_result: |
| 195 | """Parses the information from the environment as form data. |
| 196 | |
| 197 | :param environ: the WSGI environment to be used for parsing. |
| 198 | :return: A tuple in the form ``(stream, form, files)``. |
| 199 | """ |
| 200 | stream = get_input_stream(environ, max_content_length=self.max_content_length) |
| 201 | content_length = get_content_length(environ) |
| 202 | mimetype, options = parse_options_header(environ.get("CONTENT_TYPE")) |
| 203 | return self.parse( |
| 204 | stream, |
| 205 | content_length=content_length, |
| 206 | mimetype=mimetype, |
| 207 | options=options, |
| 208 | ) |
| 209 | |
| 210 | def parse( |
| 211 | self, |