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