You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
value: the value of the form field - either a bytestring or None.
242
242
243
243
Returns:
244
-
A new instance of a [`Field`][multipart.Field].
244
+
A new instance of a [`Field`][python_multipart.Field].
245
245
"""
246
246
247
247
f=cls(name)
@@ -351,7 +351,7 @@ class File:
351
351
| MAX_MEMORY_FILE_SIZE | `int` | 1 MiB | The maximum number of bytes of a File to keep in memory. By default, the contents of a File are kept into memory until a certain limit is reached, after which the contents of the File are written to a temporary file. This behavior can be disabled by setting this value to an appropriately large value (or, for example, infinity, such as `float('inf')`. |
352
352
353
353
Args:
354
-
file_name: The name of the file that this [`File`][multipart.File] represents.
354
+
file_name: The name of the file that this [`File`][python_multipart.File] represents.
355
355
field_name: The name of the form field that this file was uploaded with. This can be None, if, for example,
356
356
the file was uploaded with Content-Type application/octet-stream.
357
357
config: The configuration for this File. See above for valid configuration keys and their corresponding values.
@@ -663,7 +663,7 @@ class OctetStreamParser(BaseParser):
663
663
| on_end | None | Called when the parser is finished parsing all data.|
664
664
665
665
Args:
666
-
callbacks: A dictionary of callbacks. See the documentation for [`BaseParser`][multipart.BaseParser].
666
+
callbacks: A dictionary of callbacks. See the documentation for [`BaseParser`][python_multipart.BaseParser].
667
667
max_size: The maximum size of body to parse. Defaults to infinity - i.e. unbounded.
668
668
"""
669
669
@@ -733,12 +733,12 @@ class QuerystringParser(BaseParser):
733
733
| on_end | None | Called when the parser is finished parsing all data.|
734
734
735
735
Args:
736
-
callbacks: A dictionary of callbacks. See the documentation for [`BaseParser`][multipart.BaseParser].
736
+
callbacks: A dictionary of callbacks. See the documentation for [`BaseParser`][python_multipart.BaseParser].
737
737
strict_parsing: Whether or not to parse the body strictly. Defaults to False. If this is set to True, then the
738
738
behavior of the parser changes as the following: if a field has a value with an equal sign
739
739
(e.g. "foo=bar", or "foo="), it is always included. If a field has no equals sign (e.g. "...&name&..."),
740
740
it will be treated as an error if 'strict_parsing' is True, otherwise included. If an error is encountered,
741
-
then a [`QuerystringParseError`][multipart.exceptions.QuerystringParseError] will be raised.
741
+
then a [`QuerystringParseError`][python_multipart.exceptions.QuerystringParseError] will be raised.
742
742
max_size: The maximum size of body to parse. Defaults to infinity - i.e. unbounded.
743
743
"""# noqa: E501
744
744
@@ -969,7 +969,7 @@ class MultipartParser(BaseParser):
969
969
970
970
Args:
971
971
boundary: The multipart boundary. This is required, and must match what is given in the HTTP request - usually in the Content-Type header.
972
-
callbacks: A dictionary of callbacks. See the documentation for [`BaseParser`][multipart.BaseParser].
972
+
callbacks: A dictionary of callbacks. See the documentation for [`BaseParser`][python_multipart.BaseParser].
973
973
max_size: The maximum size of body to parse. Defaults to infinity - i.e. unbounded.
0 commit comments