Add missing links in advance usage section
MODIFY
docs/advanced-usage.rst
docs/advanced-usage.rst
@@ -559,7 +559,7 @@ Custom SSL Contexts
You can exercise fine-grained control over the urllib3 SSL configuration by
providing a :class:`ssl.SSLContext <python:ssl.SSLContext>` object. For purposes
of compatibility, we recommend you obtain one from
-:func:`~urllib3.util.ssl_.create_urllib3_context`.
+:func:`~urllib3.util.create_urllib3_context`.
Once you have a context object, you can mutate it to achieve whatever effect
you'd like. For example, the code below loads the default SSL certificates, sets
@@ -581,5 +581,5 @@ flag that isn't set by default, and then makes a HTTPS request:
pool.request("GET", "https://www.google.com/")
Note that this is different from passing an ``options`` argument to
-:func:`~urllib3.util.ssl_.create_urllib3_context` because we don't overwrite
+:func:`~urllib3.util.create_urllib3_context` because we don't overwrite
the default options: we only add a new one.

MODIFY
docs/reference/index.rst
docs/reference/index.rst
@@ -3,6 +3,7 @@ API Reference
.. toctree::
+ urllib3.request
urllib3.poolmanager
urllib3.connectionpool
urllib3.connection

MODIFY
docs/reference/urllib3.exceptions.rst
docs/reference/urllib3.exceptions.rst
-Exceptions
-==========
+Exceptions and Warnings
+=======================
.. automodule:: urllib3.exceptions
:members:
:undoc-members:
:show-inheritance:
+
+.. autofunction:: urllib3.disable_warnings

ADD
docs/reference/urllib3.request.rst
+urllib3.request()
+=================
+
+.. autofunction:: urllib3.request

MODIFY
src/urllib3/util/__init__.py
src/urllib3/util/__init__.py
@@ -10,6 +10,7 @@ from .ssl_ import (
IS_SECURETRANSPORT,
SSLContext,
assert_fingerprint,
+ create_urllib3_context,
resolve_cert_reqs,
resolve_ssl_version,
ssl_wrap_socket,
@@ -28,6 +29,7 @@ __all__ = (
"Timeout",
"Url",
"assert_fingerprint",
+ "create_urllib3_context",
"is_connection_dropped",
"is_fp_closed",
"parse_url",

Add missing links in advance usage section (#2446)

Co-authored-by: Ratan Kulshreshtha <ratan.kulshreshtha@inmobi.com>