Bug 32026

Summary: Web Inspector: In addition to the # of HTTP headers, it would be nice to show the size (in bytes).
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: alex.stapleton, bweinstein, graouts, inspector-bugzilla-changes, joepeck, jonowells, karlcow, pmuellr, rik, robert.colburn+bugzilla, webkit-bug-importer
Priority: P2 Keywords: EasyFix, GoodFirstBug, InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 155112    
Bug Blocks:    

Description Pavel Feldman 2009-12-01 09:34:09 PST
In addition to the # of HTTP headers, it would be nice to show the size (in bytes).
Comment 1 Patrick Mueller 2009-12-01 13:16:32 PST
The size of the headers, in bytes?  

Curious why you'd want that, I can't think of any other web framework (client or server) that provides that info.
Comment 2 Timothy Hatcher 2009-12-01 13:25:52 PST
It is useful to know the full cost of the request/response.
Comment 3 Patrick Mueller 2009-12-01 16:30:43 PST
Just to add to the list, then, use of "transfer-encoding: chunked" incurs additional overhead on the transfer of the payload.  Typically not much, and probably inconsequential.  But something.

And for some reason, I'm thinking we may not be seeing all the headers.  Isn't a system framework used for HTTP access on Mac?
Comment 4 Joseph Pecoraro 2009-12-01 17:38:39 PST
(In reply to comment #3)
> And for some reason, I'm thinking we may not be seeing all the headers.  Isn't
> a system framework used for HTTP access on Mac?

Patrick you may be right. Here was a comment made on a different bug I added about headers not showing up in the Web Inspector's list:
https://bugs.webkit.org/show_bug.cgi?id=24272#c2

> Without actually investigating these, here is a couple of guesses that may be
> relevant:
> - the missing headers are likely those added by NSURLConnection, which is why
> WebKit doesn't know about these;
> - it should be possible to store the actual request in
> connection:willSendRequest:redirectResponse: delegate call (see comment about
> <rdar://problem/5380697> there).
Comment 5 Alex Stapleton 2010-04-19 09:34:57 PDT
I'd love to see this info in the web inspector. My use case is a bit weird (target devices only have GRPS connectivity) but I can imagine it being useful in the more general case too.

The current web inspector is also ever so slightly misleading in that is says "x kB transferred" when dealing with compressed data but it's actually only counting content bytes and not headers. This can be moderately significant if you are an AJAX heavy site that makes lots of small requests.
Comment 6 Rob Colburn 2012-05-10 14:25:09 PDT
We now have a Timing tab for each request and a Size column, has there been any progress in obtaining the total number of bytes?

Tip: If you're eager for the info, Fiddler will provide it.
Comment 7 Radar WebKit Bug Importer 2014-12-17 11:21:48 PST
<rdar://problem/19281487>
Comment 8 Joseph Pecoraro 2017-04-12 19:08:09 PDT
With Bug 155112 Web Inspector will have all of the data we need to show the sizes in Web Inspector. I'll keep this open to track showing the header sizes in Web Inspector somewhere.
Comment 9 Karl Dubost 2023-09-04 22:43:29 PDT
In Network Tab of Web Inspector,
Click on the resource,
Then on the right panel on Sizes.
The headers size and the body size are shown.