Repository navigation
[NetworkReporter][iOS] Support redirects in RCTInspectorNetworkReporter - #60237
Merged
Merged
Conversation
This was referenced Nov 23, 2026
cipolleschi
approved these changes
Nov 24, 2026
cipolleschi
enabled stacked auto-merge (squash)
November 24, 2026 16:10
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.
Summary
Context
Expo is moving
expo/fetch,expo-imageandexpo-assetontoRCTInspectorNetworkReporterandInspectorNetworkReporter, in place of its own CDP relay in Expo CLI. This stack fills the gaps in those APIs for networking stacks that replaceRCTNetworkingandNetworkingModule.This diff
Support reporting redirects from
RCTInspectorNetworkReporter.NetworkReporter::reportRequestStartalready takes an optional redirect response, sent asNetwork.requestWillBeSent'sredirectResponse, but the Objective-C method always passesstd::nullopt, so a redirected request shows in the Network panel as one request, with the original URL and the final response.reportRequestStart:request:encodedDataLength:redirectResponse:, which reports a request sent after a redirect under the same request id.expo/fetchcalls it for each hop from itsURLSessiondelegate.reportRequestStart:request:encodedDataLength:through it, with no redirect response.PerformanceResourceTimingis unchanged:NetworkReporterkeeps the entry from the first request, so itsnameandfetchStartstay those of the original request.Changelog:
[iOS][Added] - React Native DevTools:
RCTInspectorNetworkReportermethod to report redirects, for networking stacks that replaceRCTNetworkingTest Plan
Built Expo's
bare-expoapp from source against React Native 0.89.0-rc.2, whose copy of these files is identical tomain, with this change applied, and withexpo/fetchcalling the new method fromwillPerformHTTPRedirection:expo/fetchrequest tohttps://httpbin.org/redirect/2produced, under one request id:ℹ️ Adds the method to the four
ReactApplesnapshots. TheReactAndroidviews failed locally on an unrelated Doxygen parse error infmt's headers.