diff --git a/packages/common/http/src/client.ts b/packages/common/http/src/client.ts index d77181e492..d22918980a 100644 --- a/packages/common/http/src/client.ts +++ b/packages/common/http/src/client.ts @@ -29,6 +29,7 @@ function addBody( headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer' | 'blob' | 'json' | 'text', withCredentials?: boolean, }, @@ -38,6 +39,7 @@ function addBody( headers: options.headers, observe: options.observe, params: options.params, + reportProgress: options.reportProgress, responseType: options.responseType, withCredentials: options.withCredentials, }; @@ -76,6 +78,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -89,6 +92,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -102,6 +106,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -114,7 +119,7 @@ export class HttpClient { body?: any, headers?: HttpHeaders, params?: HttpParams, - observe: 'events', + observe: 'events', reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -126,7 +131,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -138,7 +143,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -150,6 +155,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, + reportProgress?: boolean, observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, }): Observable>; @@ -161,6 +167,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, + reportProgress?: boolean, observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, }): Observable>; @@ -172,7 +179,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -184,7 +191,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -196,7 +203,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -208,6 +215,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, + reportProgress?: boolean, observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, }): Observable>; @@ -219,6 +227,7 @@ export class HttpClient { request(method: string, url: string, options: { body?: any, headers?: HttpHeaders, + reportProgress?: boolean, observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, }): Observable>; @@ -233,6 +242,7 @@ export class HttpClient { observe?: 'body', params?: HttpParams, responseType?: 'json', + reportProgress?: boolean, withCredentials?: boolean, }): Observable; @@ -247,6 +257,7 @@ export class HttpClient { observe?: 'body', params?: HttpParams, responseType?: 'json', + reportProgress?: boolean, withCredentials?: boolean, }): Observable; @@ -261,6 +272,7 @@ export class HttpClient { headers?: HttpHeaders, params?: HttpParams, observe?: HttpObserve, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, }): Observable; @@ -301,6 +313,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -317,6 +330,7 @@ export class HttpClient { req = new HttpRequest(first, url !, options.body || null, { headers: options.headers, params: options.params, + reportProgress: options.reportProgress, // By default, JSON is assumed to be returned for all calls. responseType: options.responseType || 'json', withCredentials: options.withCredentials, @@ -399,6 +413,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -412,6 +427,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -424,6 +440,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -434,7 +451,7 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -445,7 +462,7 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -456,7 +473,7 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -467,7 +484,11 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -477,7 +498,11 @@ export class HttpClient { */ delete(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -487,7 +512,7 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -498,7 +523,7 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -509,7 +534,7 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -520,7 +545,11 @@ export class HttpClient { */ delete (url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -530,7 +559,11 @@ export class HttpClient { */ delete(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -542,6 +575,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -555,6 +589,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -568,6 +603,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -584,6 +620,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -596,6 +633,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -608,6 +646,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -618,7 +657,7 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -629,7 +668,7 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -640,7 +679,7 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -651,7 +690,11 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -661,7 +704,11 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -671,7 +718,7 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -682,7 +729,7 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -693,7 +740,7 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -704,7 +751,11 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -714,7 +765,11 @@ export class HttpClient { */ get(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -726,6 +781,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -739,6 +795,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -752,6 +809,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -768,6 +826,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, /** @@ -780,6 +839,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -792,6 +852,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -802,7 +863,7 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -813,7 +874,7 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -824,7 +885,7 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -835,7 +896,11 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -845,7 +910,11 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -855,7 +924,7 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -866,7 +935,7 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -877,7 +946,7 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -888,7 +957,11 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -898,7 +971,11 @@ export class HttpClient { */ head(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -910,6 +987,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -923,6 +1001,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -936,6 +1015,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -981,6 +1061,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -993,6 +1074,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -1005,6 +1087,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -1015,7 +1098,7 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1026,7 +1109,7 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1037,7 +1120,7 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1048,7 +1131,11 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1058,7 +1145,11 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1068,7 +1159,7 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1079,7 +1170,7 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1090,7 +1181,7 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1101,7 +1192,11 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1111,7 +1206,11 @@ export class HttpClient { */ options(url: string, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1123,6 +1222,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1136,6 +1236,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1149,6 +1250,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -1164,6 +1266,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -1176,6 +1279,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -1188,6 +1292,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -1198,7 +1303,7 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1209,7 +1314,7 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1220,7 +1325,7 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1231,7 +1336,11 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1241,7 +1350,11 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1251,7 +1364,7 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1262,7 +1375,7 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1273,7 +1386,7 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1284,7 +1397,11 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1294,7 +1411,11 @@ export class HttpClient { */ patch(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1306,6 +1427,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1319,6 +1441,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1332,6 +1455,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -1347,6 +1471,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -1359,6 +1484,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -1371,6 +1497,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -1381,7 +1508,7 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1392,7 +1519,7 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1403,7 +1530,7 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1414,7 +1541,11 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1424,7 +1555,11 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1434,7 +1569,7 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1445,7 +1580,7 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1456,7 +1591,7 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1467,7 +1602,11 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1477,7 +1616,11 @@ export class HttpClient { */ post(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1489,6 +1632,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1502,6 +1646,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1515,6 +1660,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { @@ -1530,6 +1676,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable; @@ -1542,6 +1689,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable; @@ -1554,6 +1702,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable; @@ -1564,7 +1713,7 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1575,7 +1724,7 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1586,7 +1735,7 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, + observe: 'events', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1597,7 +1746,11 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'events', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'events', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1617,7 +1770,7 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'arraybuffer', withCredentials?: boolean, }): Observable>; @@ -1628,7 +1781,7 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'blob', withCredentials?: boolean, }): Observable>; @@ -1639,7 +1792,7 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, + observe: 'response', params?: HttpParams, reportProgress?: boolean, responseType: 'text', withCredentials?: boolean, }): Observable>; @@ -1650,7 +1803,11 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1660,7 +1817,11 @@ export class HttpClient { */ put(url: string, body: any|null, options: { headers?: HttpHeaders, - observe: 'response', params?: HttpParams, responseType?: 'json', withCredentials?: boolean, + observe: 'response', + params?: HttpParams, + reportProgress?: boolean, + responseType?: 'json', + withCredentials?: boolean, }): Observable>; /** @@ -1672,6 +1833,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1685,6 +1847,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: 'body', params?: HttpParams, + reportProgress?: boolean, responseType?: 'json', withCredentials?: boolean, }): Observable; @@ -1698,6 +1861,7 @@ export class HttpClient { headers?: HttpHeaders, observe?: HttpObserve, params?: HttpParams, + reportProgress?: boolean, responseType?: 'arraybuffer'|'blob'|'json'|'text', withCredentials?: boolean, } = {}): Observable { diff --git a/packages/common/http/test/client_spec.ts b/packages/common/http/test/client_spec.ts index 126ad750cd..2a68280294 100644 --- a/packages/common/http/test/client_spec.ts +++ b/packages/common/http/test/client_spec.ts @@ -76,6 +76,12 @@ export function main() { }); backend.expectOne('/test').flush({'data': 'hello world'}); }); + it('with progress events enabled', (done: DoneFn) => { + client.get('/test', {reportProgress: true}).subscribe(() => done()); + const req = backend.expectOne('/test'); + expect(req.request.reportProgress).toEqual(true); + req.flush({}); + }); }); describe('makes a POST request', () => { it('with text data', (done: DoneFn) => { diff --git a/tools/public_api_guard/common/http.d.ts b/tools/public_api_guard/common/http.d.ts index 812324f9e1..49b61581e0 100644 --- a/tools/public_api_guard/common/http.d.ts +++ b/tools/public_api_guard/common/http.d.ts @@ -13,6 +13,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -20,6 +21,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -27,6 +29,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -34,6 +37,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -41,6 +45,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -48,6 +53,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -55,6 +61,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -62,6 +69,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -69,6 +77,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -76,6 +85,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -83,6 +93,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -90,6 +101,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -97,6 +109,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -104,6 +117,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -111,6 +125,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -118,6 +133,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -125,6 +141,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -132,6 +149,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -139,6 +157,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -146,6 +165,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -153,6 +173,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -160,6 +181,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -167,6 +189,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -174,6 +197,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -181,6 +205,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -188,6 +213,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -195,6 +221,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -202,6 +229,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -209,6 +237,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -216,6 +245,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -223,6 +253,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -230,6 +261,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -237,6 +269,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -244,6 +277,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -251,6 +285,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -258,6 +293,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -265,6 +301,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -272,6 +309,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -279,6 +317,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -286,6 +325,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -293,6 +333,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -300,6 +341,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -307,6 +349,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -314,6 +357,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -321,6 +365,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -330,6 +375,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -337,6 +383,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -344,6 +391,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -351,6 +399,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -358,6 +407,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -365,6 +415,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -372,6 +423,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -379,6 +431,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -386,6 +439,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -393,6 +447,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -400,6 +455,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -407,6 +463,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -414,6 +471,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -421,6 +479,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -428,6 +487,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -435,6 +495,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -442,6 +503,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -449,6 +511,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -456,6 +519,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -463,6 +527,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -470,6 +535,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -477,6 +543,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -484,6 +551,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -491,6 +559,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -498,6 +567,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -505,6 +575,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -512,6 +583,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -519,6 +591,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -526,6 +599,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -533,6 +607,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -540,6 +615,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -547,6 +623,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -554,6 +631,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -561,6 +639,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -568,6 +647,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -575,6 +655,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -582,6 +663,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -589,6 +671,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -596,6 +679,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -603,6 +687,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -610,6 +695,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -617,6 +703,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -624,6 +711,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -631,6 +719,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -638,6 +727,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -645,6 +735,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; @@ -652,6 +743,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -659,6 +751,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -666,6 +759,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -673,6 +767,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -680,6 +775,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -693,6 +789,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable>; @@ -700,6 +797,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -707,6 +805,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -714,6 +813,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -721,6 +821,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -728,6 +829,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -735,6 +837,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -742,12 +845,14 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType?: 'json'; withCredentials?: boolean; }): Observable; request(method: string, url: string, options: { body?: any; headers?: HttpHeaders; + reportProgress?: boolean; observe: 'events'; params?: HttpParams; responseType?: 'json'; @@ -759,6 +864,7 @@ export declare class HttpClient { observe?: 'body'; params?: HttpParams; responseType?: 'json'; + reportProgress?: boolean; withCredentials?: boolean; }): Observable; request(method: string, url: string, options: { @@ -766,6 +872,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable; @@ -774,6 +881,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable; @@ -782,6 +890,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe?: 'body'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable; @@ -790,6 +899,7 @@ export declare class HttpClient { headers?: HttpHeaders; params?: HttpParams; observe: 'events'; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -798,6 +908,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -806,6 +917,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'events'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; @@ -813,6 +925,7 @@ export declare class HttpClient { request(method: string, url: string, options: { body?: any; headers?: HttpHeaders; + reportProgress?: boolean; observe: 'events'; params?: HttpParams; responseType?: 'json'; @@ -823,6 +936,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'arraybuffer'; withCredentials?: boolean; }): Observable>; @@ -831,6 +945,7 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'blob'; withCredentials?: boolean; }): Observable>; @@ -839,12 +954,14 @@ export declare class HttpClient { headers?: HttpHeaders; observe: 'response'; params?: HttpParams; + reportProgress?: boolean; responseType: 'text'; withCredentials?: boolean; }): Observable>; request(method: string, url: string, options: { body?: any; headers?: HttpHeaders; + reportProgress?: boolean; observe: 'response'; params?: HttpParams; responseType?: 'json'; @@ -853,6 +970,7 @@ export declare class HttpClient { request(method: string, url: string, options: { body?: any; headers?: HttpHeaders; + reportProgress?: boolean; observe: 'response'; params?: HttpParams; responseType?: 'json'; @@ -864,6 +982,7 @@ export declare class HttpClient { observe?: 'body'; params?: HttpParams; responseType?: 'json'; + reportProgress?: boolean; withCredentials?: boolean; }): Observable; request(method: string, url: string, options?: { @@ -871,6 +990,7 @@ export declare class HttpClient { headers?: HttpHeaders; params?: HttpParams; observe?: HttpObserve; + reportProgress?: boolean; responseType?: 'arraybuffer' | 'blob' | 'json' | 'text'; withCredentials?: boolean; }): Observable;