ipvfoo
ipvfoo copied to clipboard
Adding protocol negotiated
Is it possible to add a column showing what protocol was used in the web request? Such as quic, h2-14(http/2), spdy, etc.
I'm not sure if Chrome exposes that level of detail. It's not in the webRequest API, at least:
https://developer.chrome.com/extensions/webRequest#event-onResponseStarted
window.chrome.loadTimes() contains the information necessary, and it is also synchronous.
That would require injecting a script into every page, and would only cover the top-level request. Doesn't seem worth the invasiveness to extract such a limited amount of data.
I think it would make more sense to file feature request with Chrome to amend the webRequest API.
I did some more experimenting. You can get the information through webRequest with the onHeadersReceived event. It is located in the responseHeaders opt_extraInfoSpec.
The headers contain whatever blob of text the server decided to push. Trying to infer the protocol from the content would not be robust.
This extension gets that information at least for the primary page load.
https://github.com/pd4d10/http-indicator
https://github.com/pd4d10/http-indicator works by injecting a content script. I don't think the functionality is useful enough to expand IPvFoo's interaction model from "read" to "read/write".
I don't know if it's exposed anywhere, but if you open the Network tab and add the Protocol column, that shows the protocol.