mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-07-26 00:00:14 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04fdbed1fb | ||
|
|
3aab872ec0 | ||
|
|
b2e7878da4 | ||
|
|
6808069a18 |
@@ -17,9 +17,9 @@ Please check [CHANGELOG.md](CHANGELOG.md) for details about updating to a new ve
|
||||
The plugin conforms to the Cordova plugin specification, it can be installed
|
||||
using the Cordova / Phonegap command line interface.
|
||||
|
||||
phonegap plugin add https://github.com/wymsee/cordova-HTTP.git
|
||||
phonegap plugin add cordova-plugin-http
|
||||
|
||||
cordova plugin add https://github.com/wymsee/cordova-HTTP.git
|
||||
cordova plugin add cordova-plugin-http
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cordova-plugin-http",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.2",
|
||||
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
|
||||
"cordova": {
|
||||
"id": "cordova-plugin-http",
|
||||
|
||||
Vendored
+6
-2
@@ -137,8 +137,12 @@ if (typeof angular !== "undefined") {
|
||||
|
||||
var cordovaHTTP = {
|
||||
getBasicAuthHeader: http.getBasicAuthHeader,
|
||||
useBasicAuth: http.useBasicAuth,
|
||||
setHeader: http.setHeader,
|
||||
useBasicAuth: function(username, password) {
|
||||
return http.useBasicAuth(username, password);
|
||||
},
|
||||
setHeader: function(header, value) {
|
||||
return http.setHeader(header, value);
|
||||
},
|
||||
enableSSLPinning: function(enable) {
|
||||
return makePromise(http.enableSSLPinning, [enable]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user