Closed Bug 2056277 Opened 1 month ago Closed 1 month ago

Add protocol to webrequest details object

Categories

(WebExtensions :: Request Handling, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: valentin, Unassigned)

Details

The details object currently exposes fields such as ip and statusCode but not protocol. As such it's not possible to tell if the request used "HTTP/1.1 or H2, H3".

This info is currently present in devtools, and PerformanceResourceTiming.nextHopProtocol (only available in the content page).

See potential users in IETF mailing list thread

Does statusLine cover your needs?

string. HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers.

Flags: needinfo?(valentin.gosu)

Interesting, I think it does. I'm able to see HTTP/1.1, HTTP/2.0, and HTTP/3.0 in Firefox's statusLine while browsing around.

But Chrome seems to be stuck at HTTP/1.1: https://issues.chromium.org/issues/41432835

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → WORKSFORME
Flags: needinfo?(valentin.gosu)
You need to log in before you can comment on or make changes to this bug.