I am trying to use RN's fetch()
method with http connection alive.
I tried with header 'Connection: keep-alive' but it does not seem to work. I cannot use http.Agent
because http
module is not supported in React Native. I searched but cannot find an alternative module.(XmlHttpRequest does not work also)
Question: What can I do to keep http connection alive in React Native's environment?
My ultimate purpose is to authenticate a NTLM server in React Native's JavaScriptCore, the authentication needs keep-alive http connection. Any other suggestion is also appreciated.