@@ -74,7 +74,7 @@ export class HTTP extends IonicNativePlugin {
74
74
* This returns an object representing a basic HTTP Authorization header of the form.
75
75
* @param username {string} Username
76
76
* @param password {string} Password
77
- * @returns {Object } an object representing a basic HTTP Authorization header of the form {'Authorization': 'Basic base64encodedusernameandpassword '}
77
+ * @returns {Object } an object representing a basic HTTP Authorization header of the form {'Authorization': 'Basic base64EncodedUsernameAndPassword '}
78
78
*/
79
79
@Cordova ( { sync : true } )
80
80
getBasicAuthHeader (
@@ -283,7 +283,7 @@ export class HTTP extends IonicNativePlugin {
283
283
* @param headers {Object} The headers to set for this request
284
284
* @param filePath {string} The local path of the file to upload
285
285
* @param name {string} The name of the parameter to pass the file along as
286
- * @returns {Promise<HTTPResponse > } returns a promise that resolve on success, and reject on failure
286
+ * @returns {Promise<FileEntry > } returns a promise that resolve on success, and reject on failure
287
287
*/
288
288
@Cordova ( )
289
289
uploadFile (
@@ -292,7 +292,7 @@ export class HTTP extends IonicNativePlugin {
292
292
headers : any ,
293
293
filePath : string ,
294
294
name : string
295
- ) : Promise < HTTPResponse > {
295
+ ) : Promise < FileEntry > {
296
296
return ;
297
297
}
298
298
@@ -301,16 +301,16 @@ export class HTTP extends IonicNativePlugin {
301
301
* @param url {string} The url to send the request to
302
302
* @param body {Object} The body of the request
303
303
* @param headers {Object} The headers to set for this request
304
- * @param filePath {string} The path to donwload the file to, including the file name.
305
- * @returns {Promise<HTTPResponse > } returns a promise that resolve on success, and reject on failure
304
+ * @param filePath {string} The path to download the file to, including the file name.
305
+ * @returns {Promise<FileEntry > } returns a promise that resolve on success, and reject on failure
306
306
*/
307
307
@Cordova ( )
308
308
downloadFile (
309
309
url : string ,
310
310
body : any ,
311
311
headers : any ,
312
312
filePath : string
313
- ) : Promise < HTTPResponse > {
313
+ ) : Promise < FileEntry > {
314
314
return ;
315
315
}
316
316
}
0 commit comments