Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ea023e

Browse files
committed
Issue #28088: Document Transport.set_protocol and get_protocol
1 parent c542049 commit 1ea023e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Doc/library/asyncio-protocol.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ BaseTransport
8787

8888
- ``'subprocess'``: :class:`subprocess.Popen` instance
8989

90+
.. method:: set_protocol(self, protocol)
91+
92+
Set a new protocol. Switching protocol should only be done when both
93+
protocols are documented to support the switch.
94+
95+
.. versionadded:: 3.6.0
96+
97+
.. method:: get_protocol(self)
98+
99+
Return the current protocol.
100+
101+
.. versionadded:: 3.6.0
102+
90103
.. versionchanged:: 3.5.1
91104
``'ssl_object'`` info was added to SSL sockets.
92105

0 commit comments

Comments
 (0)