Skip to content

Commit

Permalink
Update WWW spec version due to 6f62c16
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgodwin committed Jan 16, 2024
1 parent 6f62c16 commit 3f0147d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions specs/www.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
HTTP & WebSocket ASGI Message Format
====================================

**Version**: 2.3 (2021-02-02)
**Version**: 2.4 (2024-01-16)

The HTTP+WebSocket ASGI sub-specification outlines how to transport HTTP/1.1,
HTTP/2 and WebSocket connections within ASGI.
Expand All @@ -15,12 +15,13 @@ are able to be handled by WSGI.
Spec Versions
-------------

This spec has had three versions:
This spec has had the following versions:

* ``2.0``: The first version of the spec, released with ASGI 2.0
* ``2.1``: Added the ``headers`` key to the WebSocket Accept response
* ``2.2``: Allow ``None`` in the second item of ``server`` scope value.
* ``2.3``: Added the ``reason`` key to the WebSocket close event.
* ``2.4``: Calling ``send()`` on a closed WebSocket connection should raise an error

This comment has been minimized.

Copy link
@Kludex

Kludex Jan 20, 2024

Contributor

Hold on @andrewgodwin 👀

Was your intention only to raise on WebSocket? Because the PR that was merged (#431), actually doesn't specify for WebSocket.

This comment has been minimized.

Copy link
@Kludex

Kludex Jan 20, 2024

Contributor

(also, can we make a release of the docs? I don't know how that works)

This comment has been minimized.

Copy link
@andrewgodwin

andrewgodwin Jan 20, 2024

Author Member

It was not just WebSocket, I just copied the line above a bit too directly I think. I'll fix it.

The docs are supposed to auto release once they are merged to main, but I see that's stopped. I'll go check the readthedocs config.

This comment has been minimized.

Copy link
@Kludex

Kludex Jan 20, 2024

Contributor

Thanks!


Spec versions let you understand what the server you are using understands. If
a server tells you it only supports version ``2.0`` of this spec, then
Expand Down

0 comments on commit 3f0147d

Please sign in to comment.