Skip to content
Myr

refactor^2

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent b51e042 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/api.py+2 added-2 removed
17 unmodified lines
1819__all__ = ('request', 'get', 'head', 'post', 'put', 'delete')2021def request(method, url, params=None, data=None, headers=None, cookies=None, files=None, auth=None,22 timeout=config.settings.timeout, allow_redirects=False):22 timeout=None, allow_redirects=False):23 """Constructs and sends a :class:`Request <models.Request>`. Returns :class:`Response <models.Response>` object.2425 :param method: method for the new :class:`Request` object.26 :param url: URL for the new :class:`Request` object.
17 unmodified lines
44 headers = headers,45 cookiejar = cookies,46 files = files,47 auth = auth or auth_manager.get_auth(url),48 timeout = timeout,48 timeout = timeout or config.settings.timeout,49 allow_redirects = allow_redirects50 )5152 r.send()
73 unmodified lines