filepost
choose_boundary()
Our embarrassingly-simple replacement for mimetools.choose_boundary.
Source code in client/ayon_fusion/vendor/urllib3/filepost.py
15 16 17 18 19 20 21 22 |
|
encode_multipart_formdata(fields, boundary=None)
Encode a dictionary of fields
using the multipart/form-data MIME format.
:param fields: Dictionary of fields or list of (key, :class:~urllib3.fields.RequestField
).
:param boundary: If not specified, then a random boundary will be generated using :func:urllib3.filepost.choose_boundary
.
Source code in client/ayon_fusion/vendor/urllib3/filepost.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
|
iter_field_objects(fields)
Iterate over fields.
Supports list of (k, v) tuples and dicts, and lists of :class:~urllib3.fields.RequestField
.
Source code in client/ayon_fusion/vendor/urllib3/filepost.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
iter_fields(fields)
.. deprecated:: 1.6
Iterate over fields.
The addition of :class:~urllib3.fields.RequestField
makes this function obsolete. Instead, use :func:iter_field_objects
, which returns :class:~urllib3.fields.RequestField
objects.
Supports list of (k, v) tuples and dicts.
Source code in client/ayon_fusion/vendor/urllib3/filepost.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|