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
Remove custom header support from DevSupportHttpClient (facebook#55884)
Summary:
The addRequestHeader/removeRequestHeader methods don't need to live inside devsupport.
Instead we can use the `setOkHttpClientFactory` to provide this same logic.
Changelog: [Internal]
Reviewed By: javache, cipolleschi
Differential Revision: D95059080
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/DevSupportHttpClient.kt
+1-25Lines changed: 1 addition & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -9,31 +9,17 @@
9
9
10
10
packagecom.facebook.react.devsupport.inspector
11
11
12
-
importjava.util.concurrent.ConcurrentHashMap
13
12
importjava.util.concurrent.TimeUnit
14
-
importokhttp3.Interceptor
15
13
importokhttp3.OkHttpClient
16
14
17
15
/**
18
16
* Shared [OkHttpClient] instances for devsupport networking. Uses a single connection pool and
19
-
* dispatcher across all dev support HTTP and WebSocket usage. Supports injecting custom request
20
-
* headers that are applied to every outgoing request via an OkHttp interceptor.
17
+
* dispatcher across all dev support HTTP and WebSocket usage.
0 commit comments