You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8bd65f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/network/InspectorNetworkReporter.kt
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,25 @@ public object InspectorNetworkReporter {
47
47
encodedDataLength:Long,
48
48
)
49
49
50
+
/**
51
+
* Report a network request that is about to be sent after following a redirect, under the same
52
+
* `requestId` as the request that was redirected. `encodedDataLength` is the size of the redirect
53
+
* response.
54
+
* - Corresponds to `Network.requestWillBeSent` with `redirectResponse` in CDP.
55
+
*/
56
+
@JvmStatic
57
+
publicexternalfunreportRequestStart(
58
+
requestId:String,
59
+
requestUrl:String,
60
+
requestMethod:String,
61
+
requestHeaders:Map<String, String>,
62
+
requestBody:String,
63
+
encodedDataLength:Long,
64
+
redirectResponseUrl:String,
65
+
redirectResponseStatus:Int,
66
+
redirectResponseHeaders:Map<String, String>,
67
+
)
68
+
50
69
/**
51
70
* Report detailed timing info, such as DNS lookup, when a request has started.
52
71
* - Corresponds to `Network.requestWillBeSentExtraInfo` in CDP.
0 commit comments