Skip to content
Myr

Merge pull request #4001 from bowlofeggs/seconds

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Specify that the timeout parameter is in seconds.

authored by Kenneth Reitz · committed by GitHub · parents 379025a, 3d813c9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/api.py+1 added-1 removed
27 unmodified lines
28 or a 4-tuple ``('filename', fileobj, 'content_type', custom_headers)``, where ``'content-type'`` is a string29 defining the content type of the given file and ``custom_headers`` a dict-like object containing additional headers30 to add for the file.31 :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth.32 :param timeout: (optional) How long to wait for the server to send data32 :param timeout: (optional) How many seconds to wait for the server to send data33 before giving up, as a float, or a :ref:`(connect timeout, read34 timeout) <timeouts>` tuple.35 :type timeout: float or tuple36 :param allow_redirects: (optional) Boolean. Enable/disable GET/OPTIONS/POST/PUT/PATCH/DELETE/HEAD redirection. Defaults to ``True``.
116 unmodified lines