A framework for building native applications using React
Implement Network.getResponseBody (#52332)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52332 Adds support for the [`Network.getResponseBody`](https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-getResponseBody) CDP event in `jsinspector-modern` and configures this for iOS. This enables us to populate the "Preview" and "Response" tabs in the React Native DevTools Network panel. This is integrated with `RCTNetworking.mm` to support synchronously received `text` or `blob` data types, with incremental response support added next in D77457109. **Implementation notes** - Adds a new `BoundedRequestBuffer` construct to safely buffer response previews at a max memory size. - `RCTNetworking` will always call `maybeStoreResponseBody` (when feature flag enabled), but is unaware whether there is an active CDP debugging session with network support or not. Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D74319394 fbshipit-source-id: c9dbb44551c15d1b1a7cce56b35bf829f8a99dc7
A
Alex Hunt committed
94c97db4da6088767e7f640210f628e0668482fa
Parent: 9253fc3
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 7/3/2025, 12:01:57 PM