Skip to content

Commit 35cb9dc

Browse files
valentingcanova
andauthored
Add priorityHeader field to network requests (#5707)
Co-authored-by: Nazım Can Altınova <[email protected]>
1 parent 698b341 commit 35cb9dc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/components/tooltip/NetworkMarker.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,14 @@ export function getNetworkMarkerDetails(
308308
</TooltipDetail>
309309
);
310310

311+
if (payload.priorityHeader) {
312+
details.push(
313+
<TooltipDetail label="Priority Header" key="Network-Priority-Header">
314+
{payload.priorityHeader}
315+
</TooltipDetail>
316+
);
317+
}
318+
311319
if (mimeType) {
312320
details.push(
313321
<TooltipDetail label={mimeTypeLabel} key={'Network-' + mimeTypeLabel}>

src/types/markers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,9 @@ export type NetworkPayload = {
500500
RedirectURI?: string;
501501
id: number;
502502
pri: number; // priority of the load; always included as it can change
503+
// The Priority header value from the HTTP response.
504+
// This property is optional because older versions of Gecko do not include it.
505+
priorityHeader?: string;
503506
count?: number; // Total size of transfer, if any
504507
// See all possible values in tools/profiler/core/platform.cpp
505508
status: NetworkStatus;

0 commit comments

Comments
 (0)