react-native/Libraries/Network
Nick Lockwood a92f107712 Added RCTFileRequestHandler
Summary: @​public

We previously discovered that using an NSURLSessionDataTask to load local files is noticably less efficient than using regular filesystem methods.

This diff adds RCTFileRequestHandler as a replacement for RCTHTTPRequestHandler when loading local files. This reduces loading time when loading local files via XMLHttpRequest, as well as improving the performance for some image load requests.

Reviewed By: @javache

Differential Revision: D2531710

fb-gh-sync-id: 259714baac131784de494d24939f42ad52bff41a
2015-10-13 08:14:28 -07:00
..
RCTNetwork.xcodeproj Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
FormData.js [ReactNative] Use FbHttp for handling http requests from React Native. 2015-08-18 09:12:40 -07:00
NetInfo.js - Fix response variable from getCurrentReachability 2015-10-11 19:42:24 -07:00
RCTDownloadTask.h Refactored RCTImageDownloader to use RCTNetworking instead of a separate download system 2015-07-27 13:47:52 -08:00
RCTDownloadTask.m Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
RCTFileRequestHandler.h Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
RCTFileRequestHandler.m Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
RCTHTTPRequestHandler.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTHTTPRequestHandler.m Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
RCTNetInfo.h Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
RCTNetInfo.m Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
RCTNetworking.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
RCTNetworking.h Refactored RCTImageDownloader to use RCTNetworking instead of a separate download system 2015-07-27 13:47:52 -08:00
RCTNetworking.m Added RCTFileRequestHandler 2015-10-13 08:14:28 -07:00
XMLHttpRequest.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
XMLHttpRequest.ios.js Fix null values in network requests 2015-08-14 05:16:02 -08:00
XMLHttpRequestBase.js Fix incorrect lowercase response headers set for XHR responses 2015-07-07 15:05:45 -08:00