Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public class NetworkingModule(
val requestId = requestIdAsDouble.toInt()
val timeout = timeoutAsDouble.toInt()
try {
sendRequestInternal(
sendRequestInternalReal(
method,
url,
requestId,
Expand All @@ -245,6 +245,7 @@ public class NetworkingModule(
}
}

@Deprecated("""sendRequestInternal is internal and will be made private in a future release.""")
/** @param timeout value of 0 results in no timeout */
public fun sendRequestInternal(
method: String,
Expand All @@ -256,6 +257,31 @@ public class NetworkingModule(
useIncrementalUpdates: Boolean,
timeout: Int,
withCredentials: Boolean,
) {
sendRequestInternalReal(
method,
url,
requestId,
headers,
data,
responseType,
useIncrementalUpdates,
timeout,
withCredentials,
)
}

/** @param timeout value of 0 results in no timeout */
private fun sendRequestInternalReal(
method: String,
url: String?,
requestId: Int,
headers: ReadableArray?,
data: ReadableMap?,
responseType: String,
useIncrementalUpdates: Boolean,
timeout: Int,
withCredentials: Boolean,
) {
val reactApplicationContext = getReactApplicationContextIfActiveOrWarn()
try {
Expand Down