Any reason to be still using HTTP/1 in 2026?
But of course, the only scenarios where you have prior knowledge are things like reverse proxies or custom made clients.
sock.write('HTTP/1.1 200 OK\r\ncontent-length: ' + f.size() + '\r\n\r\n')
sendfile(sock, f)
which wouldn't work with H2/H3. WebSockets are still in practice H/1 only (spec exists but is disabled in browsers). Another aspect is that if you're simply using HTTP as a preamble to 1 large (bidi) pipe, the extra framing and flow control of H/2 is just a performance handicap.While those devices stay static development and updates on the software that interfaces them to the rest of the world has not stopped.