summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-protocol.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst
index 0deecd9..873f8bb 100644
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -87,6 +87,19 @@ BaseTransport
- ``'subprocess'``: :class:`subprocess.Popen` instance
+ .. method:: set_protocol(self, protocol)
+
+ Set a new protocol. Switching protocol should only be done when both
+ protocols are documented to support the switch.
+
+ .. versionadded:: 3.6.0
+
+ .. method:: get_protocol(self)
+
+ Return the current protocol.
+
+ .. versionadded:: 3.6.0
+
.. versionchanged:: 3.5.1
``'ssl_object'`` info was added to SSL sockets.