◆ _encode_files()
| pip._vendor.requests.models.RequestEncodingMixin._encode_files |
( |
|
files, |
|
|
|
data |
|
) |
| |
|
staticprotected |
Build the body for a multipart/form-data request.
Will successfully encode files when passed as a dict or a list of
tuples. Order is retained if data is a list of tuples but arbitrary
if parameters are supplied as a dict.
The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype)
or 4-tuples (filename, fileobj, contentype, custom_headers).
◆ _encode_params()
| pip._vendor.requests.models.RequestEncodingMixin._encode_params |
( |
|
data | ) |
|
|
staticprotected |
Encode parameters in a piece of data.
Will successfully encode parameters when passed as a dict or a list of
2-tuples. Order is retained if data is a list of 2-tuples but arbitrary
if parameters are supplied as a dict.
◆ path_url()
| pip._vendor.requests.models.RequestEncodingMixin.path_url |
( |
|
self | ) |
|
Build the path URL to use.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/requests/models.py