From c2a62cd3c811357d9ddfb8bf8163822298a95d0c Mon Sep 17 00:00:00 2001 From: Sefa Ilkimen Date: Wed, 21 Mar 2018 21:30:06 +0100 Subject: [PATCH] feat(http): add support for new properties (#2135) --- src/@ionic-native/plugins/http/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/http/index.ts b/src/@ionic-native/plugins/http/index.ts index c5d0f8380..c55d2e461 100644 --- a/src/@ionic-native/plugins/http/index.ts +++ b/src/@ionic-native/plugins/http/index.ts @@ -6,14 +6,18 @@ export interface HTTPResponse { * The status number of the response */ status: number; - /** - * The data that is in the response. This property usually exists when a promise returned by a request method resolves. - */ - data?: any; /** * The headers of the response */ headers: any; + /** + * The URL of the response. This property will be the final URL obtained after any redirects. + */ + url: string; + /** + * The data that is in the response. This property usually exists when a promise returned by a request method resolves. + */ + data?: any; /** * Error response from the server. This property usually exists when a promise returned by a request method rejects. */