I need backend code to detect when the browser successfully switches over to h3 session following Alt-Svc response header.
I'm building a content submission system and need to leverage the network congestion relief benefits of QUIC. My system will discriminate and only allow uploads once the browser has successfully switched to h3, but I need some way to detect it in backend code, some session field or environment variable. Backend code may be PHP, or anything else, whatever works.
What is the way to detect HTTP protocol version of the session on the server side?
Essentially I expect the flow to be something like:
- the browser connects via h2 to the landing page
- Alt-Svc response header proposes h3
- JavaScript calls a page reload after a delay
- the browser is expected to connect via h3
- backend code detects h3 and responds with content submission form
- (otherwise the landing page with a page reload will repeat for some iterations until the browser jumps to h3)
That's how I picture it at the high level. I welcome any suggestions.
I'm building a content submission system and need to leverage the network congestion relief benefits of QUIC. My system will discriminate and only allow uploads once the browser has successfully switched to h3, but I need some way to detect it in backend code, some session field or environment variable. Backend code may be PHP, or anything else, whatever works.
What is the way to detect HTTP protocol version of the session on the server side?
Essentially I expect the flow to be something like:
- the browser connects via h2 to the landing page
- Alt-Svc response header proposes h3
- JavaScript calls a page reload after a delay
- the browser is expected to connect via h3
- backend code detects h3 and responds with content submission form
- (otherwise the landing page with a page reload will repeat for some iterations until the browser jumps to h3)
That's how I picture it at the high level. I welcome any suggestions.
Last edited: