Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> > WebTransport is QUIC

> No it is an API to expose lower level parts of HTTP/3 to developers. HTTP/3 uses QUIC as a transport protocol, but it is very wrong to say it "is" QUIC.

Well, that's the only thing the parent got almost right. (The rest was obvious nonsense, though. I agree.)

WebTransport is of course not QUIC. But it allows to use QUIC streams almost directly.

There are no "lower parts" of HTTP/3 other than QUIC. HTTP/3 is a quite thin layer directly atop of QUIC.

With WebTransport you send a CONNECT request with some special flags / headers to the web server and given a correct response you can start using raw QUIC streams over your HTTP/3 QUIC connection.

The overhead to get at your raw QUIC streams is quite low and a one time thing. From there you can directly use all the capabilities QUIC gives you (client or server initiated reliable unidirectional and bidirectional data streams or unreliable datagrams transporting arbitrary binary messages over a kind of "virtual" connection).



I was looking into this but are you sure web transport will expose bidirectional binary quic streams and datagrams to the browser? If so please link so I can start hacking!


Yes, I'm quite sure this works this way. I was looking into a few implementations and the specs:

https://datatracker.ietf.org/doc/html/draft-ietf-webtrans-ov...

https://www.w3.org/TR/webtransport/

https://github.com/w3c/webtransport

https://github.com/w3c/webtransport/blob/main/explainer.md

https://github.com/aiortc/aioquic/blob/main/examples/http3_s...

WebTransport just landed in Firefox release versions and is available since some time in Chromium so it's indeed ready for hacking! :-D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: