Added size support to Network tab [#Issue_6165]#9744
Open
Victowolf wants to merge 10 commits intoflutter:masterfrom
Open
Added size support to Network tab [#Issue_6165]#9744Victowolf wants to merge 10 commits intoflutter:masterfrom
Victowolf wants to merge 10 commits intoflutter:masterfrom
Conversation
srawlins
approved these changes
Mar 27, 2026
Contributor
srawlins
left a comment
There was a problem hiding this comment.
Looks great, thank you!
packages/devtools_app/lib/src/screens/network/network_request_inspector_views.dart
Show resolved
Hide resolved
Contributor
|
Merge in the master branch to resolve that merge conflict. |
srawlins
approved these changes
Mar 27, 2026
Author
|
Hi @srawlins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds support for displaying response payload size in the Network tab
And Fixes #6165
I have introduced a new "Size" column in the network requests table and a new row displaying the response size in the Overview panel of the request inspector.
Changes
1. Data Model Updates
File:
packages/devtools_app/lib/src/screens/network/network_model.dartNetworkRequestbase class:requestBytesresponseBytesSocketclass using:writeBytes: request sizereadBytes: response sizePurpose:
This exposes byte-level data in a unified way for all network request types.
2. HTTP Data Handling
File:
packages/devtools_app/lib/src/shared/http/http_request_data.dartcontent-lengthheader.StringandList<String>header formats.Purpose:
This provides the response size for HTTP requests when available, without requiring changes to the Dart VM.
3. Network Table UI
File:
packages/devtools_app/lib/src/screens/network/network_screen.dart-when size is unavailable.Purpose:
To make payload size visible in the UI directly in the Network tab for quick inspection.
4. Request Inspector (Overview Panel)
File:
packages/devtools_app/lib/src/screens/network/network_request_inspector_views.dartPurpose:
This provides detailed size information when inspecting a specific request.
5. Tests
This change is primarily UI and data exposure based on existing VM/service data, so no new unit tests were added.
Why request size is not included
Request size is not reliably available for HTTP requests due to limitations in the current DevTools and VM service APIs:
HttpProfileRequest.content-lengthare often absent for outgoing requests.While socket-level request size (
writeBytes) is available, this is not consistently applicable to HTTP requests.Therefore, Including request size would require changes in the Dart SDK / VM layer.
For these reasons, this PR focuses on response size, which can be reliably determined using:
readBytescontent-lengthheader (when present)The screenshot
Future Work
Pre-launch Checklist
General checklist
Issues checklist
Tests checklist
AI-tooling checklist
Feature-change checklist
NEXT_RELEASE_NOTES.md(will be added after PR creation).