News for hackers. Stuff that matters.
Re:Why does gRPC insist on trailers? by anyfoo on Sunday August 07, 2022 @07:44PM (#32381029)
I’m not a web developer, but that RFC, which talks about bootstrapping, talks about using the CONNECT method to “transition” to the WebSockets protocol. Which matches what I thought the CONNECT method does: Switch to a protocol that is not HTTP?

But I only skimmed the introduction, did I miss something?

Re:Why does gRPC insist on trailers? by blibble on Sunday August 07, 2022 @07:56PM (#32381111)
normally uses GET and the Upgrade header, not CONNECT
Re:Why does gRPC insist on trailers? by sveiss on Sunday August 07, 2022 @08:25PM (#32381270)
That’s for HTTP/1.1, where WebSockets are really a completely different protocol which “hijacks” the underlying TCP or TCP+TLS stream from HTTP via the Upgrade request.

HTTP/2 has its own concept of streams, so WebSockets can run over a single HTTP/2 stream, and the linked RFC describes extending the CONNECT method to take over a single stream.