@ionic-native/http
Advanced tools
Comparing version 5.30.0 to 5.31.1
137
index.d.ts
@@ -26,2 +26,5 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
} | ||
interface AbortedResponse { | ||
aborted: boolean; | ||
} | ||
/** | ||
@@ -78,2 +81,3 @@ * @name HTTP | ||
POST_PROCESSING_FAILED: number; | ||
ABORTED: number; | ||
}; | ||
@@ -179,2 +183,12 @@ /** | ||
/** | ||
* Make a sync POST request | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
postSync(url: string, body: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a GET request | ||
@@ -188,2 +202,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync GET request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
getSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a PUT request | ||
@@ -197,2 +221,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync PUT request | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
putSync(url: string, body: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a PATCH request | ||
@@ -206,2 +240,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync PATCH request | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
patchSync(url: string, body: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a DELETE request | ||
@@ -215,2 +259,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync DELETE request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
deleteSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a HEAD request | ||
@@ -224,2 +278,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync HEAD request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
headSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make an OPTIONS request | ||
@@ -233,2 +297,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make an sync OPTIONS request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
optionsSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* | ||
@@ -248,2 +322,14 @@ * @param url {string} The url to send the request to | ||
* @param headers {Object} The headers to set for this request | ||
* @param filePath {string} The local path(s) of the file(s) to upload | ||
* @param name {string} The name(s) of the parameter to pass the file(s) along as | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
uploadFileSync(url: string, body: any, headers: any, filePath: string | string[], name: string | string[], success: (result: any) => void, failure: (error: any) => void): string; | ||
/** | ||
* | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param filePath {string} The path to download the file to, including the file name. | ||
@@ -256,2 +342,13 @@ * @returns {Promise<any>} returns a FileEntry promise that will resolve on success, and reject on failure | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param filePath {string} The path to download the file to, including the file name. | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
downloadFileSync(url: string, body: any, headers: any, filePath: string, success: (result: any) => void, failure: (error: any) => void): string; | ||
/** | ||
* | ||
* @param url {string} The url to send the request to | ||
* @param options {Object} options for individual request | ||
@@ -287,4 +384,44 @@ * @param options.method {string} request method | ||
}): Promise<HTTPResponse>; | ||
/** | ||
* | ||
* @param url {string} The url to send the request to | ||
* @param options {Object} options for individual request | ||
* @param options.method {string} request method | ||
* @param options.data {Object} payload to be send to the server (only applicable on post, put or patch methods) | ||
* @param options.params {Object} query params to be appended to the URL (only applicable on get, head, delete, upload or download methods) | ||
* @param options.serializer {string} data serializer to be used (only applicable on post, put or patch methods), defaults to global serializer value, see setDataSerializer for supported values | ||
* @param options.timeout {number} timeout value for the request in seconds, defaults to global timeout value | ||
* @param options.headers {Object} headers object (key value pair), will be merged with global values | ||
* @param options.filePath {string} file path(s) to be used during upload and download see uploadFile and downloadFile for detailed information | ||
* @param options.name {string} name(s) to be used during upload see uploadFile for detailed information | ||
* @param options.responseType {string} response type, defaults to text | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
sendRequestSync(url: string, options: { | ||
method: 'get' | 'post' | 'put' | 'patch' | 'head' | 'delete' | 'options' | 'upload' | 'download'; | ||
data?: { | ||
[index: string]: any; | ||
}; | ||
params?: { | ||
[index: string]: string | number; | ||
}; | ||
serializer?: 'json' | 'urlencoded' | 'utf8' | 'multipart'; | ||
timeout?: number; | ||
headers?: { | ||
[index: string]: string; | ||
}; | ||
filePath?: string | string[]; | ||
name?: string | string[]; | ||
responseType?: 'text' | 'arraybuffer' | 'blob' | 'json'; | ||
}, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* @param requestId {string} The RequestId of the request to abort | ||
*/ | ||
abort(requestId: string): Promise<AbortedResponse>; | ||
} | ||
export {}; | ||
export declare const HTTP: HTTPOriginal; |
17
index.js
@@ -5,3 +5,3 @@ var __extends = (this && this.__extends) || (function () { | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
@@ -37,15 +37,26 @@ }; | ||
HTTPOriginal.prototype.post = function (url, body, headers) { return cordova(this, "post", {}, arguments); }; | ||
HTTPOriginal.prototype.postSync = function (url, body, headers, success, failure) { return cordova(this, "post", { "methodName": "post", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.get = function (url, parameters, headers) { return cordova(this, "get", {}, arguments); }; | ||
HTTPOriginal.prototype.getSync = function (url, parameters, headers, success, failure) { return cordova(this, "get", { "methodName": "get", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.put = function (url, body, headers) { return cordova(this, "put", {}, arguments); }; | ||
HTTPOriginal.prototype.putSync = function (url, body, headers, success, failure) { return cordova(this, "put", { "methodName": "put", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.patch = function (url, body, headers) { return cordova(this, "patch", {}, arguments); }; | ||
HTTPOriginal.prototype.patchSync = function (url, body, headers, success, failure) { return cordova(this, "patch", { "methodName": "patch", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.delete = function (url, parameters, headers) { return cordova(this, "delete", {}, arguments); }; | ||
HTTPOriginal.prototype.deleteSync = function (url, parameters, headers, success, failure) { return cordova(this, "delete", { "methodName": "delete", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.head = function (url, parameters, headers) { return cordova(this, "head", {}, arguments); }; | ||
HTTPOriginal.prototype.headSync = function (url, parameters, headers, success, failure) { return cordova(this, "head", { "methodName": "head", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.options = function (url, parameters, headers) { return cordova(this, "options", {}, arguments); }; | ||
HTTPOriginal.prototype.optionsSync = function (url, parameters, headers, success, failure) { return cordova(this, "options", { "methodName": "options", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.uploadFile = function (url, body, headers, filePath, name) { return cordova(this, "uploadFile", {}, arguments); }; | ||
HTTPOriginal.prototype.uploadFileSync = function (url, body, headers, filePath, name, success, failure) { return cordova(this, "uploadFile", { "methodName": "uploadFile", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.downloadFile = function (url, body, headers, filePath) { return cordova(this, "downloadFile", {}, arguments); }; | ||
HTTPOriginal.prototype.downloadFileSync = function (url, body, headers, filePath, success, failure) { return cordova(this, "downloadFile", { "methodName": "downloadFile", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.sendRequest = function (url, options) { return cordova(this, "sendRequest", {}, arguments); }; | ||
HTTPOriginal.prototype.sendRequestSync = function (url, options, success, failure) { return cordova(this, "sendRequest", { "methodName": "sendRequest", "sync": true }, arguments); }; | ||
HTTPOriginal.prototype.abort = function (requestId) { return cordova(this, "abort", {}, arguments); }; | ||
Object.defineProperty(HTTPOriginal.prototype, "ErrorCode", { | ||
get: function () { return cordovaPropertyGet(this, "ErrorCode"); }, | ||
set: function (value) { cordovaPropertySet(this, "ErrorCode", value); }, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -62,2 +73,2 @@ }); | ||
export { HTTP }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL2h0dHAvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUNBLE9BQU8sc0VBQXVELE1BQU0sb0JBQW9CLENBQUM7O0lBdUUvRCx3QkFBaUI7Ozs7SUF1QnpDLGlDQUFrQixhQUFDLFFBQWdCLEVBQUUsUUFBZ0I7SUFVckQsMkJBQVksYUFBQyxRQUFnQixFQUFFLFFBQWdCO0lBUS9DLHlCQUFVLGFBQUMsSUFBWTtJQVd2Qix3QkFBUyxhQUFDLElBQVksRUFBRSxNQUFjLEVBQUUsS0FBYTtJQU9yRCxnQ0FBaUI7SUFVakIsZ0NBQWlCLGFBQUMsVUFBZ0U7SUFRbEYsd0JBQVMsYUFBQyxHQUFXLEVBQUUsTUFBYztJQU1yQywyQkFBWTtJQVFaLDRCQUFhLGFBQUMsR0FBVyxFQUFFLEVBQWM7SUFPekMsOEJBQWUsYUFBQyxHQUFXO0lBUzNCLGdDQUFpQjtJQVNqQixnQ0FBaUIsYUFBQyxPQUFlO0lBT2pDLGdDQUFpQjtJQVNqQixnQ0FBaUIsYUFBQyxNQUFlO0lBWWpDLGlDQUFrQixhQUFDLElBQWlEO0lBWXBFLG1CQUFJLGFBQUMsR0FBVyxFQUFFLElBQVMsRUFBRSxPQUFZO0lBWXpDLGtCQUFHLGFBQUMsR0FBVyxFQUFFLFVBQWUsRUFBRSxPQUFZO0lBWTlDLGtCQUFHLGFBQUM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9IFRoZSBSZXF1ZXN0SWQgb2YgdGhlIHJlcXVlc3QgdG8gYWJvcnRcbiAgICovXG4gIEBDb3Jkb3ZhKClcbiAgYWJvcnQocmVxdWVzdElkOiBzdHJpbmcpOiBQcm9taXNlPEFib3J0ZWRSZXNwb25zZT4ge1xuICAgIHJldHVybjtcbiAgfVxufVxuIl19 |
@@ -26,2 +26,5 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
} | ||
interface AbortedResponse { | ||
aborted: boolean; | ||
} | ||
/** | ||
@@ -78,2 +81,3 @@ * @name HTTP | ||
POST_PROCESSING_FAILED: number; | ||
ABORTED: number; | ||
}; | ||
@@ -179,2 +183,12 @@ /** | ||
/** | ||
* Make a sync POST request | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
postSync(url: string, body: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a GET request | ||
@@ -188,2 +202,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync GET request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
getSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a PUT request | ||
@@ -197,2 +221,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync PUT request | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
putSync(url: string, body: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a PATCH request | ||
@@ -206,2 +240,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync PATCH request | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
patchSync(url: string, body: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a DELETE request | ||
@@ -215,2 +259,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync DELETE request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
deleteSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make a HEAD request | ||
@@ -224,2 +278,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make a sync HEAD request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
headSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* Make an OPTIONS request | ||
@@ -233,2 +297,12 @@ * @param url {string} The url to send the request to | ||
/** | ||
* Make an sync OPTIONS request | ||
* @param url {string} The url to send the request to | ||
* @param parameters {Object} Parameters to send with the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
optionsSync(url: string, parameters: any, headers: any, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* | ||
@@ -248,2 +322,14 @@ * @param url {string} The url to send the request to | ||
* @param headers {Object} The headers to set for this request | ||
* @param filePath {string} The local path(s) of the file(s) to upload | ||
* @param name {string} The name(s) of the parameter to pass the file(s) along as | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
uploadFileSync(url: string, body: any, headers: any, filePath: string | string[], name: string | string[], success: (result: any) => void, failure: (error: any) => void): string; | ||
/** | ||
* | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param filePath {string} The path to download the file to, including the file name. | ||
@@ -256,2 +342,13 @@ * @returns {Promise<any>} returns a FileEntry promise that will resolve on success, and reject on failure | ||
* @param url {string} The url to send the request to | ||
* @param body {Object} The body of the request | ||
* @param headers {Object} The headers to set for this request | ||
* @param filePath {string} The path to download the file to, including the file name. | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
downloadFileSync(url: string, body: any, headers: any, filePath: string, success: (result: any) => void, failure: (error: any) => void): string; | ||
/** | ||
* | ||
* @param url {string} The url to send the request to | ||
* @param options {Object} options for individual request | ||
@@ -287,2 +384,42 @@ * @param options.method {string} request method | ||
}): Promise<HTTPResponse>; | ||
/** | ||
* | ||
* @param url {string} The url to send the request to | ||
* @param options {Object} options for individual request | ||
* @param options.method {string} request method | ||
* @param options.data {Object} payload to be send to the server (only applicable on post, put or patch methods) | ||
* @param options.params {Object} query params to be appended to the URL (only applicable on get, head, delete, upload or download methods) | ||
* @param options.serializer {string} data serializer to be used (only applicable on post, put or patch methods), defaults to global serializer value, see setDataSerializer for supported values | ||
* @param options.timeout {number} timeout value for the request in seconds, defaults to global timeout value | ||
* @param options.headers {Object} headers object (key value pair), will be merged with global values | ||
* @param options.filePath {string} file path(s) to be used during upload and download see uploadFile and downloadFile for detailed information | ||
* @param options.name {string} name(s) to be used during upload see uploadFile for detailed information | ||
* @param options.responseType {string} response type, defaults to text | ||
* @param success {function} A callback that is called when the request succeed | ||
* @param failure {function} A callback that is called when the request failed | ||
* | ||
* @returns {string} returns a string that represents the requestId | ||
*/ | ||
sendRequestSync(url: string, options: { | ||
method: 'get' | 'post' | 'put' | 'patch' | 'head' | 'delete' | 'options' | 'upload' | 'download'; | ||
data?: { | ||
[index: string]: any; | ||
}; | ||
params?: { | ||
[index: string]: string | number; | ||
}; | ||
serializer?: 'json' | 'urlencoded' | 'utf8' | 'multipart'; | ||
timeout?: number; | ||
headers?: { | ||
[index: string]: string; | ||
}; | ||
filePath?: string | string[]; | ||
name?: string | string[]; | ||
responseType?: 'text' | 'arraybuffer' | 'blob' | 'json'; | ||
}, success: (result: HTTPResponse) => void, failure: (error: any) => void): string; | ||
/** | ||
* @param requestId {string} The RequestId of the request to abort | ||
*/ | ||
abort(requestId: string): Promise<AbortedResponse>; | ||
} | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import { __decorate, __extends } from "tslib"; | ||
import { __extends } from "tslib"; | ||
import { Injectable } from '@angular/core'; | ||
@@ -25,15 +25,26 @@ import { IonicNativePlugin, cordova, cordovaPropertyGet, cordovaPropertySet } from '@ionic-native/core'; | ||
HTTP.prototype.post = function (url, body, headers) { return cordova(this, "post", {}, arguments); }; | ||
HTTP.prototype.postSync = function (url, body, headers, success, failure) { return cordova(this, "post", { "methodName": "post", "sync": true }, arguments); }; | ||
HTTP.prototype.get = function (url, parameters, headers) { return cordova(this, "get", {}, arguments); }; | ||
HTTP.prototype.getSync = function (url, parameters, headers, success, failure) { return cordova(this, "get", { "methodName": "get", "sync": true }, arguments); }; | ||
HTTP.prototype.put = function (url, body, headers) { return cordova(this, "put", {}, arguments); }; | ||
HTTP.prototype.putSync = function (url, body, headers, success, failure) { return cordova(this, "put", { "methodName": "put", "sync": true }, arguments); }; | ||
HTTP.prototype.patch = function (url, body, headers) { return cordova(this, "patch", {}, arguments); }; | ||
HTTP.prototype.patchSync = function (url, body, headers, success, failure) { return cordova(this, "patch", { "methodName": "patch", "sync": true }, arguments); }; | ||
HTTP.prototype.delete = function (url, parameters, headers) { return cordova(this, "delete", {}, arguments); }; | ||
HTTP.prototype.deleteSync = function (url, parameters, headers, success, failure) { return cordova(this, "delete", { "methodName": "delete", "sync": true }, arguments); }; | ||
HTTP.prototype.head = function (url, parameters, headers) { return cordova(this, "head", {}, arguments); }; | ||
HTTP.prototype.headSync = function (url, parameters, headers, success, failure) { return cordova(this, "head", { "methodName": "head", "sync": true }, arguments); }; | ||
HTTP.prototype.options = function (url, parameters, headers) { return cordova(this, "options", {}, arguments); }; | ||
HTTP.prototype.optionsSync = function (url, parameters, headers, success, failure) { return cordova(this, "options", { "methodName": "options", "sync": true }, arguments); }; | ||
HTTP.prototype.uploadFile = function (url, body, headers, filePath, name) { return cordova(this, "uploadFile", {}, arguments); }; | ||
HTTP.prototype.uploadFileSync = function (url, body, headers, filePath, name, success, failure) { return cordova(this, "uploadFile", { "methodName": "uploadFile", "sync": true }, arguments); }; | ||
HTTP.prototype.downloadFile = function (url, body, headers, filePath) { return cordova(this, "downloadFile", {}, arguments); }; | ||
HTTP.prototype.downloadFileSync = function (url, body, headers, filePath, success, failure) { return cordova(this, "downloadFile", { "methodName": "downloadFile", "sync": true }, arguments); }; | ||
HTTP.prototype.sendRequest = function (url, options) { return cordova(this, "sendRequest", {}, arguments); }; | ||
HTTP.prototype.sendRequestSync = function (url, options, success, failure) { return cordova(this, "sendRequest", { "methodName": "sendRequest", "sync": true }, arguments); }; | ||
HTTP.prototype.abort = function (requestId) { return cordova(this, "abort", {}, arguments); }; | ||
Object.defineProperty(HTTP.prototype, "ErrorCode", { | ||
get: function () { return cordovaPropertyGet(this, "ErrorCode"); }, | ||
set: function (value) { cordovaPropertySet(this, "ErrorCode", value); }, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -46,8 +57,8 @@ }); | ||
HTTP.platforms = ["Android", "iOS"]; | ||
HTTP = __decorate([ | ||
Injectable() | ||
], HTTP); | ||
HTTP.decorators = [ | ||
{ type: Injectable } | ||
]; | ||
return HTTP; | ||
}(IonicNativePlugin)); | ||
export { HTTP }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvQGlvbmljLW5hdGl2ZS9wbHVnaW5zL2h0dHAvbmd4L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sc0VBQXVELE1BQU0sb0JBQW9CLENBQUM7O0lBdUUvRCx3QkFBaUI7Ozs7SUF1QnpDLGlDQUFrQixhQUFDLFFBQWdCLEVBQUUsUUFBZ0I7SUFVckQsMkJBQVksYUFBQyxRQUFnQixFQUFFLFFBQWdCO0lBUS9DLHlCQUFVLGFBQUMsSUFBWTtJQVd2Qix3QkFBUyxhQUFDLElBQVksRUFBRSxNQUFjLEVBQUUsS0FBYTtJQU9yRCxnQ0FBaUI7SUFVakIsZ0NBQWlCLGFBQUMsVUFBZ0U7SUFRbEYsd0JBQVMsYUFBQyxHQUFXLEVBQUUsTUFBYztJQU1yQywyQkFBWTtJQVFaLDRCQUFhLGFBQUMsR0FBVyxFQUFFLEVBQWM7SUFPekMsOEJBQWUsYUFBQyxHQUFXO0lBUzNCLGdDQUFpQjtJQVNqQixnQ0FBaUIsYUFBQyxPQUFlO0lBT2pDLGdDQUFpQjtJQVNqQixnQ0FBaUIsYUFBQyxNQUFlO0lBWWpDLGlDQUFrQixhQUFDLElBQWlEO0lBWXBFLG1CQUFJ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cbiAgICBzdWNjZXNzOiAocmVzdWx0OiBIVFRQUmVzcG9uc2UpID0+IHZvaWQsXG4gICAgZmFpbHVyZTogKGVycm9yOiBhbnkpID0+IHZvaWRcbiAgKTogc3RyaW5nIHtcbiAgICByZXR1cm47XG4gIH1cblxuICAvKipcbiAgICogQHBhcmFtIHJlcXVlc3RJZCB7c3RyaW5nfSBUaGUgUmVxdWVzdElkIG9mIHRoZSByZXF1ZXN0IHRvIGFib3J0XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIGFib3J0KHJlcXVlc3RJZDogc3RyaW5nKTogUHJvbWlzZTxBYm9ydGVkUmVzcG9uc2U+IHtcbiAgICByZXR1cm47XG4gIH1cbn1cbiJdfQ== |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"HTTPResponse":{"__symbolic":"interface"},"HTTP":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":72,"character":26},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":71,"character":1}}],"members":{"ErrorCode":[{"__symbolic":"property"}],"getBasicAuthHeader":[{"__symbolic":"method"}],"useBasicAuth":[{"__symbolic":"method"}],"getHeaders":[{"__symbolic":"method"}],"setHeader":[{"__symbolic":"method"}],"getDataSerializer":[{"__symbolic":"method"}],"setDataSerializer":[{"__symbolic":"method"}],"setCookie":[{"__symbolic":"method"}],"clearCookies":[{"__symbolic":"method"}],"removeCookies":[{"__symbolic":"method"}],"getCookieString":[{"__symbolic":"method"}],"getRequestTimeout":[{"__symbolic":"method"}],"setRequestTimeout":[{"__symbolic":"method"}],"getFollowRedirect":[{"__symbolic":"method"}],"setFollowRedirect":[{"__symbolic":"method"}],"setServerTrustMode":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"patch":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"head":[{"__symbolic":"method"}],"options":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"downloadFile":[{"__symbolic":"method"}],"sendRequest":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"HTTPResponse":{"__symbolic":"interface"},"HTTP":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@ionic-native/core","name":"IonicNativePlugin","line":76,"character":26},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":75,"character":1}}],"members":{"ErrorCode":[{"__symbolic":"property"}],"getBasicAuthHeader":[{"__symbolic":"method"}],"useBasicAuth":[{"__symbolic":"method"}],"getHeaders":[{"__symbolic":"method"}],"setHeader":[{"__symbolic":"method"}],"getDataSerializer":[{"__symbolic":"method"}],"setDataSerializer":[{"__symbolic":"method"}],"setCookie":[{"__symbolic":"method"}],"clearCookies":[{"__symbolic":"method"}],"removeCookies":[{"__symbolic":"method"}],"getCookieString":[{"__symbolic":"method"}],"getRequestTimeout":[{"__symbolic":"method"}],"setRequestTimeout":[{"__symbolic":"method"}],"getFollowRedirect":[{"__symbolic":"method"}],"setFollowRedirect":[{"__symbolic":"method"}],"setServerTrustMode":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"postSync":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"getSync":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"putSync":[{"__symbolic":"method"}],"patch":[{"__symbolic":"method"}],"patchSync":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"deleteSync":[{"__symbolic":"method"}],"head":[{"__symbolic":"method"}],"headSync":[{"__symbolic":"method"}],"options":[{"__symbolic":"method"}],"optionsSync":[{"__symbolic":"method"}],"uploadFile":[{"__symbolic":"method"}],"uploadFileSync":[{"__symbolic":"method"}],"downloadFile":[{"__symbolic":"method"}],"downloadFileSync":[{"__symbolic":"method"}],"sendRequest":[{"__symbolic":"method"}],"sendRequestSync":[{"__symbolic":"method"}],"abort":[{"__symbolic":"method"}]}}}}] |
@@ -1,1 +0,1 @@ | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/http","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0","@ionic-native/core":"^5.1.0"},"version":"5.30.0"} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/http","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0","@ionic-native/core":"^5.1.0"},"version":"5.31.1"} |
@@ -1,1 +0,1 @@ | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/http","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0","@ionic-native/core":"^5.1.0"},"version":"5.30.0"} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/http","dependencies":{"@types/cordova":"latest"},"peerDependencies":{"rxjs":"^5.5.0 || ^6.5.0","@ionic-native/core":"^5.1.0"},"version":"5.31.1"} |
@@ -1,2 +0,2 @@ | ||
<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/http/index.ts#L24"> | ||
<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/src/@ionic-native/plugins/http/index.ts#L28"> | ||
Improve this doc | ||
@@ -3,0 +3,0 @@ </a> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120142
965