class RequestEncodingMixin(object):
Known subclasses: requests.models.PreparedRequest
Undocumented
Static Method | _encode_files |
Build the body for a multipart/form-data request. |
Static Method | _encode_params |
Encode parameters in a piece of data. |
Property | path_url |
Build the path URL to use. |
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).