This may just highlight some misconception of mine, but I was curious:
If you had an HTTP/2 server running and wanted to make XHR requests in the browser to the ser
You don't need to do anything. If the server supports HTTP/2, XHR will use it. Header compression and such will kick in automatically.
Test it: