-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,9 @@ The connection scope contains: | |
|
||
* ``type``: ``http`` | ||
|
||
* ``spec_version``: Version of the spec as a string, must be ``1.0``. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
Optional, if missing assume ``1.0``. | ||
|
||
* ``http_version``: Unicode string, one of ``1.0``, ``1.1`` or ``2``. | ||
|
||
* ``method``: Unicode string HTTP method name, uppercased. | ||
|
@@ -189,6 +192,9 @@ contains the initial connection metadata (mostly from the HTTP handshake): | |
|
||
* ``type``: ``websocket`` | ||
|
||
* ``spec_version``: Version of the spec as a string, one of ``1.0`` or ``2.0``. | ||
Optional, if missing assume ``1.0``. | ||
|
||
* ``http_version``: Unicode string, one of ``1.1`` or ``2``. Optional, | ||
default is ``1.1``. | ||
|
||
|
@@ -257,7 +263,7 @@ Sent by the application when it wishes to accept an incoming connection. | |
value. Order must be preserved in the HTTP response. Header names | ||
must be lowercased. Must not include a ``sec-websocket-protocol`` | ||
named header, use the ``subprotocol`` key instead. Optional, | ||
defaults to an empty list. | ||
defaults to an empty list. *Added in spec version 2.0* | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andrewgodwin
Author
Member
|
||
|
||
|
||
Receive | ||
|
6 comments
on commit 6269216
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewgodwin The scope currently has "asgi": {"version": "2.0"}
which was chosen to allow for additional meta data. Should this follow-on with "spec": {"version": "1.0"}
(or specification
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pgjones True, maybe instead it should be "asgi": {"version": "2.0", "spec_version": "2.0"}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix it up then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it stands I think this might need a bit more clarity.
It's not first-sight obvious to me without some careful parsing how to interpret version, spec_version, http_version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll clarify it more.
"Version of the of the spec" Of which spec?