Skip to content
Myr

Restore Session.request docstring

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

Resolves #1251

authored by Ian Cordasco · committed by Ian Cordasco · parent 88177ec · Browse files · 1 file+33 added−0 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+33 added−0 removed

  • other:+33 added−0 removed

1 file+33 added−0 removed

modified:requests/sessions.py+33 added
250 unmodified lines
251 hooks=None,252 stream=None,253 verify=None,254 cert=None):255 """Constructs a :class:`Request <Request>`, prepares it and sends it.256 Returns :class:`Response <Response>` object.257258 :param method: method for the new :class:`Request` object.259 :param url: URL for the new :class:`Request` object.260 :param params: (optional) Dictionary or bytes to be sent in the query261 string for the :class:`Request`.262 :param data: (optional) Dictionary or bytes to send in the body of the263 :class:`Request`.264 :param headers: (optional) Dictionary of HTTP Headers to send with the265 :class:`Request`.266 :param cookies: (optional) Dict or CookieJar object to send with the267 :class:`Request`.268 :param files: (optional) Dictionary of 'filename': file-like-objects269 for multipart encoding upload.270 :param auth: (optional) Auth tuple or callable to enable271 Basic/Digest/Custom HTTP Auth.272 :param timeout: (optional) Float describing the timeout of the273 request.274 :param allow_redirects: (optional) Boolean. Set to True by default.275 :param proxies: (optional) Dictionary mapping protocol to the URL of276 the proxy.277 :param return_response: (optional) If False, an un-sent Request object278 will returned.279 :param config: (optional) A configuration dictionary. See280 ``request.defaults`` for allowed keys and their default values.281 :param prefetch: (optional) whether to immediately download the response282 content. Defaults to ``True``.283 :param verify: (optional) if ``True``, the SSL cert will be verified.284 A CA_BUNDLE path can also be provided.285 :param cert: (optional) if String, path to ssl client cert file (.pem).286 If Tuple, ('cert', 'key') pair.287 """288289 cookies = cookies or {}290 proxies = proxies or {}291292 # Bootstrap CookieJar.
220 unmodified lines