-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
inspector: add protocol methods retrieving sent/received data #58645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inspector: add protocol methods retrieving sent/received data #58645
Conversation
Add protocol method `Network.dataSent` to buffer request data. And expose protocol methods `Network.getRequestPostData` and `Network.getResponseBody` allowing devtool to retrieve buffered data.
0d15711 to
5b2f8a5
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #58645 +/- ##
========================================
Coverage 90.15% 90.15%
========================================
Files 636 637 +1
Lines 187891 188001 +110
Branches 36879 36899 +20
========================================
+ Hits 169386 169493 +107
+ Misses 11272 11245 -27
- Partials 7233 7263 +30
🚀 New features to boost your workflow:
|
|
@nodejs/inspector would you mind taking a look? Thank you! |
|
Landed in 5a14ea6 |
Add protocol method `Network.dataSent` to buffer request data. And expose protocol methods `Network.getRequestPostData` and `Network.getResponseBody` allowing devtool to retrieve buffered data. PR-URL: #58645 Reviewed-By: Ryuhei Shima <shimaryuhei@gmail.com>
Add protocol method `Network.dataSent` to buffer request data. And expose protocol methods `Network.getRequestPostData` and `Network.getResponseBody` allowing devtool to retrieve buffered data. PR-URL: #58645 Reviewed-By: Ryuhei Shima <shimaryuhei@gmail.com>
Add protocol method `Network.dataSent` to buffer request data. And expose protocol methods `Network.getRequestPostData` and `Network.getResponseBody` allowing devtool to retrieve buffered data. PR-URL: #58645 Reviewed-By: Ryuhei Shima <shimaryuhei@gmail.com>
|
@legendecas sorry for tagging, but I have a question, from my usage looks like this implementation covers From my understanding we could hook into auto decompress option in http client and then use that depending on conent-encoding in getResponseBody. Just trying to figure out if this is intended or missed? |
|
@capJavert yes, there is a PR #61226 for this issue. |

Add protocol method
Network.dataSentto buffer request data. Andexpose protocol methods
Network.getRequestPostDataandNetwork.getResponseBodyallowing devtool to retrieve buffered data.