ipvfoo icon indicating copy to clipboard operation
ipvfoo copied to clipboard

Adding protocol negotiated

Open BynariStar opened this issue 9 years ago • 7 comments

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.

BynariStar avatar May 01 '15 11:05 BynariStar

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

pmarks-net avatar May 02 '15 03:05 pmarks-net

window.chrome.loadTimes() contains the information necessary, and it is also synchronous.

BynariStar avatar May 02 '15 08:05 BynariStar

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.

pmarks-net avatar May 02 '15 22:05 pmarks-net

I did some more experimenting. You can get the information through webRequest with the onHeadersReceived event. It is located in the responseHeaders opt_extraInfoSpec.

BynariStar avatar May 02 '15 22:05 BynariStar

The headers contain whatever blob of text the server decided to push. Trying to infer the protocol from the content would not be robust.

pmarks-net avatar May 02 '15 22:05 pmarks-net

This extension gets that information at least for the primary page load.

https://github.com/pd4d10/http-indicator

timriker avatar Nov 04 '21 18:11 timriker

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".

pmarks-net avatar Nov 04 '21 23:11 pmarks-net

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.

timriker avatar Oct 20 '22 21:10 timriker