Skip to content
Myr

Fix documentation for proxies in the Session class

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

authored by Jason Grout · committed by Jason Grout · parent d7a3aa6 · Browse files · 1 file+5 added−5 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+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:requests/sessions.py+5 added-5 removed
297 unmodified lines
298 #: Default Authentication tuple or object to attach to299 #: :class:`Request <Request>`.300 self.auth = None301302 #: Dictionary mapping protocol to the URL of the proxy (e.g.303 #: {'http': 'foo.bar:3128'}) to be used on each304 #: :class:`Request <Request>`.302 #: Dictionary mapping protocol or protocol and host to the URL of the proxy303 #: (e.g. {'http': 'foo.bar:3128', 'http://host.name': 'foo.bar:4012'}) to304 #: be used on each :class:`Request <Request>`.305 self.proxies = {}306307 #: Event-handling hooks.308 self.hooks = default_hooks()
118 unmodified lines
427 read timeout) <timeouts>` tuple.428 :type timeout: float or tuple429 :param allow_redirects: (optional) Set to True by default.430 :type allow_redirects: bool431 :param proxies: (optional) Dictionary mapping protocol to the URL of432 the proxy.431 :param proxies: (optional) Dictionary mapping protocol or protocol and432 hostname to the URL of the proxy.433 :param stream: (optional) whether to immediately download the response434 content. Defaults to ``False``.435 :param verify: (optional) if ``True``, the SSL cert will be verified.436 A CA_BUNDLE path can also be provided.
246 unmodified lines