-
Notifications
You must be signed in to change notification settings - Fork 213
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
Spec for WebTransport in ASGI #280
Comments
Gosh, that's a lot of spec to cover. I think a good first move here would be to implement a prototype server and play with the message format a bit until it starts to feel alright to write apps against? That's what I did with HTTP and WebSocket. |
Sounds good, I'll do exactly that. The aioquic repository already features a basic HTTP/3 server which can run ASGI apps, I'll tack on a WebTransport demo. |
Maybe @bashi has some insights here in light of the specification work done for the Web Platform Tests? |
Unfortunately I haven't explored integration with wsgi/asgi when I prototyped a WebTransport over HTTP/3 server for WPT. This is mostly because wptserve has a design goal which gives test authors control of the exact bytes sent over the wire and their timing (See: introduction). Current proposed WPT APIs for WebTransport over HTTP/3 can be found here. I plan to update the proposed APIs once @jlaine's work has done. |
I have started putting together a demo WebTransport server with an "extended" ASGI implementation. So far the new messages I have are: Server => ASGI app
ASGI app => server
|
Is the server code published on GitHub? |
Yes, the |
With QUIC standardisation complete (RFC 9000) and HTTP/3 nearing completion, a new spec is shaping up: WebTransport:
https://w3c.github.io/webtransport/
https://datatracker.ietf.org/doc/html/draft-vvv-webtransport-http3
This specification revolves around a "session" initiated by the client over an HTTP3 connection by means of a CONNECT method to a give path/authority. The session then provides:
I am currently working on integrating WebTransport support in aioquic, my QUIC/HTTP3 stack, so hypercorn could very soon have support for WebTransport (hi @pgjones).
See: aiortc/aioquic#204
It would be great if there was a standardised API for Python web apps to leverage this, so I'd love us to start the discussion!
The text was updated successfully, but these errors were encountered: