cordova-plugin-okhttp

Uses OkHttp for network requests initiated from Java (e.g. via FileTransfer plugin).

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cordova-plugin-okhttp
812.0.09 years ago9 years agoMinified + gzip package size for cordova-plugin-okhttp in KB

Readme

cordova-plugin-okhttp
Cordova plugin that provides a shared OkHttpClient for other plugins to use, as well as makes URL.open() use the client under-the-hood.
This will not have any affect on requests made by from within the webview (e.g. XMLHttpRequest). However, it does change the network stack used by the FileTransfer plugin.
Plugin relies on building with Gradle, and so requires cordova-android@4.0.0 or greater.

Installation:

cordova plugin add https://github.com/MobileChromeApps/cordova-plugin-okhttp.git