module documentation

Undocumented

Function rewind_body Attempt to rewind body to a certain position. Primarily used for request redirects and retries.
Function set_file_position If a position is provided, move file to that point. Otherwise, we'll attempt to record a position for future use.
Constant ACCEPT_ENCODING Undocumented
Constant _FAILEDTELL Undocumented
def rewind_body(body, body_pos): (source)

Attempt to rewind body to a certain position. Primarily used for request redirects and retries. :param body: File-like object that supports seek. :param int pos: Position to seek to in file.

def set_file_position(body, pos): (source)

If a position is provided, move file to that point. Otherwise, we'll attempt to record a position for future use.

ACCEPT_ENCODING: str = (source)

Undocumented

Value
'gzip,deflate'
_FAILEDTELL = (source)

Undocumented

Value
object()