class documentation

class RequestEncodingMixin: (source)

Known subclasses: requests.models.PreparedRequest

View In Hierarchy

Undocumented

Property path_url Build the path URL to use.
Static Method _encode_files Build the body for a multipart/form-data request.
Static Method _encode_params Encode parameters in a piece of data.

Build the path URL to use.

@staticmethod
def _encode_files(files, data): (source)

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).

@staticmethod
def _encode_params(data): (source)

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.