Skip to content
Myr

newlines

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 6b11cf2 · Browse files · 2 files+4 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

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:requests/api.py+2 added-1 removed
21 unmodified lines
22def request(method, url,23 params=None, data=None, headers=None, cookies=None, files=None, auth=None,24 timeout=None, allow_redirects=False, proxies=None, hooks=None):2526 """Constructs and sends a :class:`Request <models.Request>`. Returns :class:`Response <models.Response>` object.26 """Constructs and sends a :class:`Request <models.Request>`.27 Returns :class:`Response <models.Response>` object.2829 :param method: method for the new :class:`Request` object.30 :param url: URL for the new :class:`Request` object.31 :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.
135 unmodified lines
modified:requests/models.py+2 added-1 removed
36 unmodified lines
37 url=None, headers=dict(), files=None, method=None, data=dict(),38 params=dict(), auth=None, cookiejar=None, timeout=None, redirect=False,39 allow_redirects=False, proxies=None):4041 #: Float describ the timeout of the request. (Use socket.setdefaulttimeout() as fallback)41 #: Float describ the timeout of the request.42 # (Use socket.setdefaulttimeout() as fallback)43 self.timeout = timeout4445 #: Request URL.46 self.url = url
537 unmodified lines