Skip to content

[PR #10988/54f1a84f backport][3.12] Add missing prepared method for WebSocketResponse to docs #10990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add missing prepared method for WebSocketResponse to docs (#10988)
(cherry picked from commit 54f1a84)
  • Loading branch information
bdraco authored and patchback[bot] committed May 23, 2025
commit d10859d8b6176d2c80bf39e2b53db11009da12ea
1 change: 1 addition & 0 deletions CHANGES/10988.bugfix.rst
2 changes: 1 addition & 1 deletion CHANGES/6009.bugfix.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fixed ``WebSocketResponse.prepared`` property to correctly reflect the prepared state, especially during timeout scenarios -- by :user:`bdraco`
Fixed :py:attr:`~aiohttp.web.WebSocketResponse.prepared` property to correctly reflect the prepared state, especially during timeout scenarios -- by :user:`bdraco`
5 changes: 5 additions & 0 deletions docs/web_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,11 @@ and :ref:`aiohttp-web-signals` handlers::
of closing.
:const:`~aiohttp.WSMsgType.CLOSE` message has been received from peer.

.. attribute:: prepared

Read-only :class:`bool` property, ``True`` if :meth:`prepare` has
been called, ``False`` otherwise.

.. attribute:: close_code

Read-only property, close code from peer. It is set to ``None`` on
Expand Down
Loading