@angular/common 17.0.0-next.7 → 17.0.0-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/esm2022/http/public_api.mjs +1 -1
  2. package/esm2022/http/src/client.mjs +6 -4
  3. package/esm2022/http/src/errors.mjs +1 -1
  4. package/esm2022/http/src/fetch.mjs +3 -3
  5. package/esm2022/http/src/interceptor.mjs +27 -5
  6. package/esm2022/http/src/jsonp.mjs +6 -6
  7. package/esm2022/http/src/module.mjs +12 -12
  8. package/esm2022/http/src/provider.mjs +14 -1
  9. package/esm2022/http/src/request.mjs +3 -1
  10. package/esm2022/http/src/transfer_cache.mjs +73 -18
  11. package/esm2022/http/src/xhr.mjs +3 -3
  12. package/esm2022/http/src/xsrf.mjs +6 -6
  13. package/esm2022/http/testing/src/backend.mjs +3 -3
  14. package/esm2022/http/testing/src/module.mjs +4 -4
  15. package/esm2022/src/common_module.mjs +4 -4
  16. package/esm2022/src/directives/ng_class.mjs +3 -3
  17. package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
  18. package/esm2022/src/directives/ng_for_of.mjs +3 -3
  19. package/esm2022/src/directives/ng_if.mjs +3 -3
  20. package/esm2022/src/directives/ng_optimized_image/index.mjs +3 -2
  21. package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
  22. package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +6 -16
  23. package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
  24. package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
  25. package/esm2022/src/directives/ng_plural.mjs +6 -6
  26. package/esm2022/src/directives/ng_style.mjs +3 -3
  27. package/esm2022/src/directives/ng_switch.mjs +21 -12
  28. package/esm2022/src/directives/ng_switch_equality.mjs +13 -0
  29. package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
  30. package/esm2022/src/errors.mjs +1 -1
  31. package/esm2022/src/i18n/localization.mjs +6 -6
  32. package/esm2022/src/location/hash_location_strategy.mjs +3 -3
  33. package/esm2022/src/location/location.mjs +3 -3
  34. package/esm2022/src/location/location_strategy.mjs +6 -6
  35. package/esm2022/src/location/platform_location.mjs +6 -6
  36. package/esm2022/src/pipes/async_pipe.mjs +3 -3
  37. package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
  38. package/esm2022/src/pipes/date_pipe.mjs +3 -3
  39. package/esm2022/src/pipes/date_pipe_config.mjs +1 -1
  40. package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
  41. package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
  42. package/esm2022/src/pipes/json_pipe.mjs +3 -3
  43. package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
  44. package/esm2022/src/pipes/number_pipe.mjs +9 -9
  45. package/esm2022/src/pipes/slice_pipe.mjs +3 -3
  46. package/esm2022/src/version.mjs +1 -1
  47. package/esm2022/testing/src/location_mock.mjs +3 -3
  48. package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
  49. package/esm2022/testing/src/mock_platform_location.mjs +3 -3
  50. package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
  51. package/fesm2022/common.mjs +134 -131
  52. package/fesm2022/common.mjs.map +1 -1
  53. package/fesm2022/http/testing.mjs +8 -8
  54. package/fesm2022/http.mjs +147 -55
  55. package/fesm2022/http.mjs.map +1 -1
  56. package/fesm2022/testing.mjs +10 -10
  57. package/fesm2022/upgrade.mjs +5 -5
  58. package/http/index.d.ts +271 -4
  59. package/http/testing/index.d.ts +1 -1
  60. package/index.d.ts +7 -22
  61. package/package.json +3 -2
  62. package/testing/index.d.ts +1 -1
  63. package/upgrade/index.d.ts +1 -1
package/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.7
2
+ * @license Angular v17.0.0-next.8
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -148,6 +148,9 @@ export declare class HttpClient {
148
148
  reportProgress?: boolean;
149
149
  responseType: 'arraybuffer';
150
150
  withCredentials?: boolean;
151
+ transferCache?: {
152
+ includeHeaders?: string[];
153
+ } | boolean;
151
154
  }): Observable<ArrayBuffer>;
152
155
  /**
153
156
  * Constructs a request that interprets the body as a blob and returns
@@ -172,6 +175,9 @@ export declare class HttpClient {
172
175
  reportProgress?: boolean;
173
176
  responseType: 'blob';
174
177
  withCredentials?: boolean;
178
+ transferCache?: {
179
+ includeHeaders?: string[];
180
+ } | boolean;
175
181
  }): Observable<Blob>;
176
182
  /**
177
183
  * Constructs a request that interprets the body as a text string and
@@ -196,6 +202,9 @@ export declare class HttpClient {
196
202
  reportProgress?: boolean;
197
203
  responseType: 'text';
198
204
  withCredentials?: boolean;
205
+ transferCache?: {
206
+ includeHeaders?: string[];
207
+ } | boolean;
199
208
  }): Observable<string>;
200
209
  /**
201
210
  * Constructs a request that interprets the body as an `ArrayBuffer` and returns the
@@ -221,6 +230,9 @@ export declare class HttpClient {
221
230
  reportProgress?: boolean;
222
231
  responseType: 'arraybuffer';
223
232
  withCredentials?: boolean;
233
+ transferCache?: {
234
+ includeHeaders?: string[];
235
+ } | boolean;
224
236
  }): Observable<HttpEvent<ArrayBuffer>>;
225
237
  /**
226
238
  * Constructs a request that interprets the body as a `Blob` and returns
@@ -246,6 +258,9 @@ export declare class HttpClient {
246
258
  reportProgress?: boolean;
247
259
  responseType: 'blob';
248
260
  withCredentials?: boolean;
261
+ transferCache?: {
262
+ includeHeaders?: string[];
263
+ } | boolean;
249
264
  }): Observable<HttpEvent<Blob>>;
250
265
  /**
251
266
  * Constructs a request which interprets the body as a text string and returns the full event
@@ -271,6 +286,9 @@ export declare class HttpClient {
271
286
  reportProgress?: boolean;
272
287
  responseType: 'text';
273
288
  withCredentials?: boolean;
289
+ transferCache?: {
290
+ includeHeaders?: string[];
291
+ } | boolean;
274
292
  }): Observable<HttpEvent<string>>;
275
293
  /**
276
294
  * Constructs a request which interprets the body as a JavaScript object and returns the full
@@ -296,6 +314,9 @@ export declare class HttpClient {
296
314
  };
297
315
  responseType?: 'json';
298
316
  withCredentials?: boolean;
317
+ transferCache?: {
318
+ includeHeaders?: string[];
319
+ } | boolean;
299
320
  }): Observable<HttpEvent<any>>;
300
321
  /**
301
322
  * Constructs a request which interprets the body as a JavaScript object and returns the full
@@ -321,6 +342,9 @@ export declare class HttpClient {
321
342
  };
322
343
  responseType?: 'json';
323
344
  withCredentials?: boolean;
345
+ transferCache?: {
346
+ includeHeaders?: string[];
347
+ } | boolean;
324
348
  }): Observable<HttpEvent<R>>;
325
349
  /**
326
350
  * Constructs a request which interprets the body as an `ArrayBuffer`
@@ -345,6 +369,9 @@ export declare class HttpClient {
345
369
  reportProgress?: boolean;
346
370
  responseType: 'arraybuffer';
347
371
  withCredentials?: boolean;
372
+ transferCache?: {
373
+ includeHeaders?: string[];
374
+ } | boolean;
348
375
  }): Observable<HttpResponse<ArrayBuffer>>;
349
376
  /**
350
377
  * Constructs a request which interprets the body as a `Blob` and returns the full `HttpResponse`.
@@ -368,6 +395,9 @@ export declare class HttpClient {
368
395
  reportProgress?: boolean;
369
396
  responseType: 'blob';
370
397
  withCredentials?: boolean;
398
+ transferCache?: {
399
+ includeHeaders?: string[];
400
+ } | boolean;
371
401
  }): Observable<HttpResponse<Blob>>;
372
402
  /**
373
403
  * Constructs a request which interprets the body as a text stream and returns the full
@@ -392,6 +422,9 @@ export declare class HttpClient {
392
422
  reportProgress?: boolean;
393
423
  responseType: 'text';
394
424
  withCredentials?: boolean;
425
+ transferCache?: {
426
+ includeHeaders?: string[];
427
+ } | boolean;
395
428
  }): Observable<HttpResponse<string>>;
396
429
  /**
397
430
  * Constructs a request which interprets the body as a JavaScript object and returns the full
@@ -441,6 +474,9 @@ export declare class HttpClient {
441
474
  };
442
475
  responseType?: 'json';
443
476
  withCredentials?: boolean;
477
+ transferCache?: {
478
+ includeHeaders?: string[];
479
+ } | boolean;
444
480
  }): Observable<HttpResponse<R>>;
445
481
  /**
446
482
  * Constructs a request which interprets the body as a JavaScript object and returns the full
@@ -465,6 +501,9 @@ export declare class HttpClient {
465
501
  responseType?: 'json';
466
502
  reportProgress?: boolean;
467
503
  withCredentials?: boolean;
504
+ transferCache?: {
505
+ includeHeaders?: string[];
506
+ } | boolean;
468
507
  }): Observable<Object>;
469
508
  /**
470
509
  * Constructs a request which interprets the body as a JavaScript object
@@ -489,6 +528,9 @@ export declare class HttpClient {
489
528
  responseType?: 'json';
490
529
  reportProgress?: boolean;
491
530
  withCredentials?: boolean;
531
+ transferCache?: {
532
+ includeHeaders?: string[];
533
+ } | boolean;
492
534
  }): Observable<R>;
493
535
  /**
494
536
  * Constructs a request where response type and requested observable are not known statically.
@@ -512,6 +554,9 @@ export declare class HttpClient {
512
554
  reportProgress?: boolean;
513
555
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
514
556
  withCredentials?: boolean;
557
+ transferCache?: {
558
+ includeHeaders?: string[];
559
+ } | boolean;
515
560
  }): Observable<any>;
516
561
  /**
517
562
  * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
@@ -885,6 +930,9 @@ export declare class HttpClient {
885
930
  reportProgress?: boolean;
886
931
  responseType: 'arraybuffer';
887
932
  withCredentials?: boolean;
933
+ transferCache?: {
934
+ includeHeaders?: string[];
935
+ } | boolean;
888
936
  }): Observable<ArrayBuffer>;
889
937
  /**
890
938
  * Constructs a `GET` request that interprets the body as a `Blob`
@@ -907,6 +955,9 @@ export declare class HttpClient {
907
955
  reportProgress?: boolean;
908
956
  responseType: 'blob';
909
957
  withCredentials?: boolean;
958
+ transferCache?: {
959
+ includeHeaders?: string[];
960
+ } | boolean;
910
961
  }): Observable<Blob>;
911
962
  /**
912
963
  * Constructs a `GET` request that interprets the body as a text string
@@ -929,6 +980,9 @@ export declare class HttpClient {
929
980
  reportProgress?: boolean;
930
981
  responseType: 'text';
931
982
  withCredentials?: boolean;
983
+ transferCache?: {
984
+ includeHeaders?: string[];
985
+ } | boolean;
932
986
  }): Observable<string>;
933
987
  /**
934
988
  * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns
@@ -952,6 +1006,9 @@ export declare class HttpClient {
952
1006
  reportProgress?: boolean;
953
1007
  responseType: 'arraybuffer';
954
1008
  withCredentials?: boolean;
1009
+ transferCache?: {
1010
+ includeHeaders?: string[];
1011
+ } | boolean;
955
1012
  }): Observable<HttpEvent<ArrayBuffer>>;
956
1013
  /**
957
1014
  * Constructs a `GET` request that interprets the body as a `Blob` and
@@ -974,6 +1031,9 @@ export declare class HttpClient {
974
1031
  reportProgress?: boolean;
975
1032
  responseType: 'blob';
976
1033
  withCredentials?: boolean;
1034
+ transferCache?: {
1035
+ includeHeaders?: string[];
1036
+ } | boolean;
977
1037
  }): Observable<HttpEvent<Blob>>;
978
1038
  /**
979
1039
  * Constructs a `GET` request that interprets the body as a text string and returns
@@ -996,6 +1056,9 @@ export declare class HttpClient {
996
1056
  reportProgress?: boolean;
997
1057
  responseType: 'text';
998
1058
  withCredentials?: boolean;
1059
+ transferCache?: {
1060
+ includeHeaders?: string[];
1061
+ } | boolean;
999
1062
  }): Observable<HttpEvent<string>>;
1000
1063
  /**
1001
1064
  * Constructs a `GET` request that interprets the body as JSON
@@ -1018,6 +1081,9 @@ export declare class HttpClient {
1018
1081
  reportProgress?: boolean;
1019
1082
  responseType?: 'json';
1020
1083
  withCredentials?: boolean;
1084
+ transferCache?: {
1085
+ includeHeaders?: string[];
1086
+ } | boolean;
1021
1087
  }): Observable<HttpEvent<Object>>;
1022
1088
  /**
1023
1089
  * Constructs a `GET` request that interprets the body as JSON and returns the full
@@ -1040,6 +1106,9 @@ export declare class HttpClient {
1040
1106
  reportProgress?: boolean;
1041
1107
  responseType?: 'json';
1042
1108
  withCredentials?: boolean;
1109
+ transferCache?: {
1110
+ includeHeaders?: string[];
1111
+ } | boolean;
1043
1112
  }): Observable<HttpEvent<T>>;
1044
1113
  /**
1045
1114
  * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and
@@ -1063,6 +1132,9 @@ export declare class HttpClient {
1063
1132
  reportProgress?: boolean;
1064
1133
  responseType: 'arraybuffer';
1065
1134
  withCredentials?: boolean;
1135
+ transferCache?: {
1136
+ includeHeaders?: string[];
1137
+ } | boolean;
1066
1138
  }): Observable<HttpResponse<ArrayBuffer>>;
1067
1139
  /**
1068
1140
  * Constructs a `GET` request that interprets the body as a `Blob` and
@@ -1086,6 +1158,9 @@ export declare class HttpClient {
1086
1158
  reportProgress?: boolean;
1087
1159
  responseType: 'blob';
1088
1160
  withCredentials?: boolean;
1161
+ transferCache?: {
1162
+ includeHeaders?: string[];
1163
+ } | boolean;
1089
1164
  }): Observable<HttpResponse<Blob>>;
1090
1165
  /**
1091
1166
  * Constructs a `GET` request that interprets the body as a text stream and
@@ -1109,6 +1184,9 @@ export declare class HttpClient {
1109
1184
  reportProgress?: boolean;
1110
1185
  responseType: 'text';
1111
1186
  withCredentials?: boolean;
1187
+ transferCache?: {
1188
+ includeHeaders?: string[];
1189
+ } | boolean;
1112
1190
  }): Observable<HttpResponse<string>>;
1113
1191
  /**
1114
1192
  * Constructs a `GET` request that interprets the body as JSON and
@@ -1132,6 +1210,9 @@ export declare class HttpClient {
1132
1210
  reportProgress?: boolean;
1133
1211
  responseType?: 'json';
1134
1212
  withCredentials?: boolean;
1213
+ transferCache?: {
1214
+ includeHeaders?: string[];
1215
+ } | boolean;
1135
1216
  }): Observable<HttpResponse<Object>>;
1136
1217
  /**
1137
1218
  * Constructs a `GET` request that interprets the body as JSON and
@@ -1155,6 +1236,9 @@ export declare class HttpClient {
1155
1236
  reportProgress?: boolean;
1156
1237
  responseType?: 'json';
1157
1238
  withCredentials?: boolean;
1239
+ transferCache?: {
1240
+ includeHeaders?: string[];
1241
+ } | boolean;
1158
1242
  }): Observable<HttpResponse<T>>;
1159
1243
  /**
1160
1244
  * Constructs a `GET` request that interprets the body as JSON and
@@ -1178,6 +1262,9 @@ export declare class HttpClient {
1178
1262
  reportProgress?: boolean;
1179
1263
  responseType?: 'json';
1180
1264
  withCredentials?: boolean;
1265
+ transferCache?: {
1266
+ includeHeaders?: string[];
1267
+ } | boolean;
1181
1268
  }): Observable<Object>;
1182
1269
  /**
1183
1270
  * Constructs a `GET` request that interprets the body as JSON and returns
@@ -1200,6 +1287,9 @@ export declare class HttpClient {
1200
1287
  reportProgress?: boolean;
1201
1288
  responseType?: 'json';
1202
1289
  withCredentials?: boolean;
1290
+ transferCache?: {
1291
+ includeHeaders?: string[];
1292
+ } | boolean;
1203
1293
  }): Observable<T>;
1204
1294
  /**
1205
1295
  * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
@@ -1222,6 +1312,9 @@ export declare class HttpClient {
1222
1312
  reportProgress?: boolean;
1223
1313
  responseType: 'arraybuffer';
1224
1314
  withCredentials?: boolean;
1315
+ transferCache?: {
1316
+ includeHeaders?: string[];
1317
+ } | boolean;
1225
1318
  }): Observable<ArrayBuffer>;
1226
1319
  /**
1227
1320
  * Constructs a `HEAD` request that interprets the body as a `Blob` and returns
@@ -1244,6 +1337,9 @@ export declare class HttpClient {
1244
1337
  reportProgress?: boolean;
1245
1338
  responseType: 'blob';
1246
1339
  withCredentials?: boolean;
1340
+ transferCache?: {
1341
+ includeHeaders?: string[];
1342
+ } | boolean;
1247
1343
  }): Observable<Blob>;
1248
1344
  /**
1249
1345
  * Constructs a `HEAD` request that interprets the body as a text string and returns the response
@@ -1266,6 +1362,9 @@ export declare class HttpClient {
1266
1362
  reportProgress?: boolean;
1267
1363
  responseType: 'text';
1268
1364
  withCredentials?: boolean;
1365
+ transferCache?: {
1366
+ includeHeaders?: string[];
1367
+ } | boolean;
1269
1368
  }): Observable<string>;
1270
1369
  /**
1271
1370
  * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer`
@@ -1289,6 +1388,9 @@ export declare class HttpClient {
1289
1388
  reportProgress?: boolean;
1290
1389
  responseType: 'arraybuffer';
1291
1390
  withCredentials?: boolean;
1391
+ transferCache?: {
1392
+ includeHeaders?: string[];
1393
+ } | boolean;
1292
1394
  }): Observable<HttpEvent<ArrayBuffer>>;
1293
1395
  /**
1294
1396
  * Constructs a `HEAD` request that interprets the body as a `Blob` and
@@ -1312,6 +1414,9 @@ export declare class HttpClient {
1312
1414
  reportProgress?: boolean;
1313
1415
  responseType: 'blob';
1314
1416
  withCredentials?: boolean;
1417
+ transferCache?: {
1418
+ includeHeaders?: string[];
1419
+ } | boolean;
1315
1420
  }): Observable<HttpEvent<Blob>>;
1316
1421
  /**
1317
1422
  * Constructs a `HEAD` request that interprets the body as a text string
@@ -1335,6 +1440,9 @@ export declare class HttpClient {
1335
1440
  reportProgress?: boolean;
1336
1441
  responseType: 'text';
1337
1442
  withCredentials?: boolean;
1443
+ transferCache?: {
1444
+ includeHeaders?: string[];
1445
+ } | boolean;
1338
1446
  }): Observable<HttpEvent<string>>;
1339
1447
  /**
1340
1448
  * Constructs a `HEAD` request that interprets the body as JSON
@@ -1358,6 +1466,9 @@ export declare class HttpClient {
1358
1466
  reportProgress?: boolean;
1359
1467
  responseType?: 'json';
1360
1468
  withCredentials?: boolean;
1469
+ transferCache?: {
1470
+ includeHeaders?: string[];
1471
+ } | boolean;
1361
1472
  }): Observable<HttpEvent<Object>>;
1362
1473
  /**
1363
1474
  * Constructs a `HEAD` request that interprets the body as JSON and
@@ -1381,6 +1492,9 @@ export declare class HttpClient {
1381
1492
  reportProgress?: boolean;
1382
1493
  responseType?: 'json';
1383
1494
  withCredentials?: boolean;
1495
+ transferCache?: {
1496
+ includeHeaders?: string[];
1497
+ } | boolean;
1384
1498
  }): Observable<HttpEvent<T>>;
1385
1499
  /**
1386
1500
  * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer`
@@ -1404,6 +1518,9 @@ export declare class HttpClient {
1404
1518
  reportProgress?: boolean;
1405
1519
  responseType: 'arraybuffer';
1406
1520
  withCredentials?: boolean;
1521
+ transferCache?: {
1522
+ includeHeaders?: string[];
1523
+ } | boolean;
1407
1524
  }): Observable<HttpResponse<ArrayBuffer>>;
1408
1525
  /**
1409
1526
  * Constructs a `HEAD` request that interprets the body as a `Blob` and returns
@@ -1427,6 +1544,9 @@ export declare class HttpClient {
1427
1544
  reportProgress?: boolean;
1428
1545
  responseType: 'blob';
1429
1546
  withCredentials?: boolean;
1547
+ transferCache?: {
1548
+ includeHeaders?: string[];
1549
+ } | boolean;
1430
1550
  }): Observable<HttpResponse<Blob>>;
1431
1551
  /**
1432
1552
  * Constructs a `HEAD` request that interprets the body as text stream
@@ -1450,6 +1570,9 @@ export declare class HttpClient {
1450
1570
  reportProgress?: boolean;
1451
1571
  responseType: 'text';
1452
1572
  withCredentials?: boolean;
1573
+ transferCache?: {
1574
+ includeHeaders?: string[];
1575
+ } | boolean;
1453
1576
  }): Observable<HttpResponse<string>>;
1454
1577
  /**
1455
1578
  * Constructs a `HEAD` request that interprets the body as JSON and
@@ -1473,6 +1596,9 @@ export declare class HttpClient {
1473
1596
  reportProgress?: boolean;
1474
1597
  responseType?: 'json';
1475
1598
  withCredentials?: boolean;
1599
+ transferCache?: {
1600
+ includeHeaders?: string[];
1601
+ } | boolean;
1476
1602
  }): Observable<HttpResponse<Object>>;
1477
1603
  /**
1478
1604
  * Constructs a `HEAD` request that interprets the body as JSON
@@ -1496,6 +1622,9 @@ export declare class HttpClient {
1496
1622
  reportProgress?: boolean;
1497
1623
  responseType?: 'json';
1498
1624
  withCredentials?: boolean;
1625
+ transferCache?: {
1626
+ includeHeaders?: string[];
1627
+ } | boolean;
1499
1628
  }): Observable<HttpResponse<T>>;
1500
1629
  /**
1501
1630
 
@@ -1519,6 +1648,9 @@ export declare class HttpClient {
1519
1648
  reportProgress?: boolean;
1520
1649
  responseType?: 'json';
1521
1650
  withCredentials?: boolean;
1651
+ transferCache?: {
1652
+ includeHeaders?: string[];
1653
+ } | boolean;
1522
1654
  }): Observable<Object>;
1523
1655
  /**
1524
1656
  * Constructs a `HEAD` request that interprets the body as JSON and returns
@@ -1542,6 +1674,9 @@ export declare class HttpClient {
1542
1674
  reportProgress?: boolean;
1543
1675
  responseType?: 'json';
1544
1676
  withCredentials?: boolean;
1677
+ transferCache?: {
1678
+ includeHeaders?: string[];
1679
+ } | boolean;
1545
1680
  }): Observable<T>;
1546
1681
  /**
1547
1682
  * Constructs a `JSONP` request for the given URL and name of the callback parameter.
@@ -2285,6 +2420,9 @@ export declare class HttpClient {
2285
2420
  reportProgress?: boolean;
2286
2421
  responseType: 'arraybuffer';
2287
2422
  withCredentials?: boolean;
2423
+ transferCache?: {
2424
+ includeHeaders?: string[];
2425
+ } | boolean;
2288
2426
  }): Observable<ArrayBuffer>;
2289
2427
  /**
2290
2428
  * Constructs a `POST` request that interprets the body as a `Blob` and returns the
@@ -2308,6 +2446,9 @@ export declare class HttpClient {
2308
2446
  reportProgress?: boolean;
2309
2447
  responseType: 'blob';
2310
2448
  withCredentials?: boolean;
2449
+ transferCache?: {
2450
+ includeHeaders?: string[];
2451
+ } | boolean;
2311
2452
  }): Observable<Blob>;
2312
2453
  /**
2313
2454
  * Constructs a `POST` request that interprets the body as a text string and
@@ -2331,6 +2472,9 @@ export declare class HttpClient {
2331
2472
  reportProgress?: boolean;
2332
2473
  responseType: 'text';
2333
2474
  withCredentials?: boolean;
2475
+ transferCache?: {
2476
+ includeHeaders?: string[];
2477
+ } | boolean;
2334
2478
  }): Observable<string>;
2335
2479
  /**
2336
2480
  * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and
@@ -2355,6 +2499,9 @@ export declare class HttpClient {
2355
2499
  reportProgress?: boolean;
2356
2500
  responseType: 'arraybuffer';
2357
2501
  withCredentials?: boolean;
2502
+ transferCache?: {
2503
+ includeHeaders?: string[];
2504
+ } | boolean;
2358
2505
  }): Observable<HttpEvent<ArrayBuffer>>;
2359
2506
  /**
2360
2507
  * Constructs a `POST` request that interprets the body as a `Blob`
@@ -2378,6 +2525,9 @@ export declare class HttpClient {
2378
2525
  reportProgress?: boolean;
2379
2526
  responseType: 'blob';
2380
2527
  withCredentials?: boolean;
2528
+ transferCache?: {
2529
+ includeHeaders?: string[];
2530
+ } | boolean;
2381
2531
  }): Observable<HttpEvent<Blob>>;
2382
2532
  /**
2383
2533
  * Constructs a `POST` request that interprets the body as a text string and returns the full
@@ -2402,6 +2552,9 @@ export declare class HttpClient {
2402
2552
  reportProgress?: boolean;
2403
2553
  responseType: 'text';
2404
2554
  withCredentials?: boolean;
2555
+ transferCache?: {
2556
+ includeHeaders?: string[];
2557
+ } | boolean;
2405
2558
  }): Observable<HttpEvent<string>>;
2406
2559
  /**
2407
2560
  * Constructs a POST request that interprets the body as JSON and returns the full
@@ -2426,6 +2579,9 @@ export declare class HttpClient {
2426
2579
  reportProgress?: boolean;
2427
2580
  responseType?: 'json';
2428
2581
  withCredentials?: boolean;
2582
+ transferCache?: {
2583
+ includeHeaders?: string[];
2584
+ } | boolean;
2429
2585
  }): Observable<HttpEvent<Object>>;
2430
2586
  /**
2431
2587
  * Constructs a POST request that interprets the body as JSON and returns the full
@@ -2450,6 +2606,9 @@ export declare class HttpClient {
2450
2606
  reportProgress?: boolean;
2451
2607
  responseType?: 'json';
2452
2608
  withCredentials?: boolean;
2609
+ transferCache?: {
2610
+ includeHeaders?: string[];
2611
+ } | boolean;
2453
2612
  }): Observable<HttpEvent<T>>;
2454
2613
  /**
2455
2614
  * Constructs a POST request that interprets the body as an `ArrayBuffer`
@@ -2474,6 +2633,9 @@ export declare class HttpClient {
2474
2633
  reportProgress?: boolean;
2475
2634
  responseType: 'arraybuffer';
2476
2635
  withCredentials?: boolean;
2636
+ transferCache?: {
2637
+ includeHeaders?: string[];
2638
+ } | boolean;
2477
2639
  }): Observable<HttpResponse<ArrayBuffer>>;
2478
2640
  /**
2479
2641
  * Constructs a `POST` request that interprets the body as a `Blob` and returns the full
@@ -2498,6 +2660,9 @@ export declare class HttpClient {
2498
2660
  reportProgress?: boolean;
2499
2661
  responseType: 'blob';
2500
2662
  withCredentials?: boolean;
2663
+ transferCache?: {
2664
+ includeHeaders?: string[];
2665
+ } | boolean;
2501
2666
  }): Observable<HttpResponse<Blob>>;
2502
2667
  /**
2503
2668
  * Constructs a `POST` request that interprets the body as a text stream and returns
@@ -2522,6 +2687,9 @@ export declare class HttpClient {
2522
2687
  reportProgress?: boolean;
2523
2688
  responseType: 'text';
2524
2689
  withCredentials?: boolean;
2690
+ transferCache?: {
2691
+ includeHeaders?: string[];
2692
+ } | boolean;
2525
2693
  }): Observable<HttpResponse<string>>;
2526
2694
  /**
2527
2695
  * Constructs a `POST` request that interprets the body as JSON
@@ -2546,6 +2714,9 @@ export declare class HttpClient {
2546
2714
  reportProgress?: boolean;
2547
2715
  responseType?: 'json';
2548
2716
  withCredentials?: boolean;
2717
+ transferCache?: {
2718
+ includeHeaders?: string[];
2719
+ } | boolean;
2549
2720
  }): Observable<HttpResponse<Object>>;
2550
2721
  /**
2551
2722
  * Constructs a `POST` request that interprets the body as JSON and returns the
@@ -2571,6 +2742,9 @@ export declare class HttpClient {
2571
2742
  reportProgress?: boolean;
2572
2743
  responseType?: 'json';
2573
2744
  withCredentials?: boolean;
2745
+ transferCache?: {
2746
+ includeHeaders?: string[];
2747
+ } | boolean;
2574
2748
  }): Observable<HttpResponse<T>>;
2575
2749
  /**
2576
2750
  * Constructs a `POST` request that interprets the body as JSON
@@ -2594,6 +2768,9 @@ export declare class HttpClient {
2594
2768
  reportProgress?: boolean;
2595
2769
  responseType?: 'json';
2596
2770
  withCredentials?: boolean;
2771
+ transferCache?: {
2772
+ includeHeaders?: string[];
2773
+ } | boolean;
2597
2774
  }): Observable<Object>;
2598
2775
  /**
2599
2776
  * Constructs a `POST` request that interprets the body as JSON
@@ -2618,6 +2795,9 @@ export declare class HttpClient {
2618
2795
  reportProgress?: boolean;
2619
2796
  responseType?: 'json';
2620
2797
  withCredentials?: boolean;
2798
+ transferCache?: {
2799
+ includeHeaders?: string[];
2800
+ } | boolean;
2621
2801
  }): Observable<T>;
2622
2802
  /**
2623
2803
  * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
@@ -3703,15 +3883,59 @@ export declare class HttpRequest<T> {
3703
3883
  * The outgoing URL with all URL parameters set.
3704
3884
  */
3705
3885
  readonly urlWithParams: string;
3706
- constructor(method: 'DELETE' | 'GET' | 'HEAD' | 'JSONP' | 'OPTIONS', url: string, init?: {
3886
+ /**
3887
+ * The HttpTransferCache option for the request
3888
+ */
3889
+ readonly transferCache?: {
3890
+ includeHeaders?: string[];
3891
+ } | boolean;
3892
+ constructor(method: 'GET' | 'HEAD', url: string, init?: {
3893
+ headers?: HttpHeaders;
3894
+ context?: HttpContext;
3895
+ reportProgress?: boolean;
3896
+ params?: HttpParams;
3897
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
3898
+ withCredentials?: boolean;
3899
+ /**
3900
+ * This property accepts either a boolean to enable/disable transferring cache for eligible
3901
+ * requests performed using `HttpClient`, or an object, which allows to configure cache
3902
+ * parameters, such as which headers should be included (no headers are included by default).
3903
+ *
3904
+ * Setting this property will override the options passed to `provideClientHydration()` for this
3905
+ * particular request
3906
+ */
3907
+ transferCache?: {
3908
+ includeHeaders?: string[];
3909
+ } | boolean;
3910
+ });
3911
+ constructor(method: 'DELETE' | 'JSONP' | 'OPTIONS', url: string, init?: {
3912
+ headers?: HttpHeaders;
3913
+ context?: HttpContext;
3914
+ reportProgress?: boolean;
3915
+ params?: HttpParams;
3916
+ responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
3917
+ withCredentials?: boolean;
3918
+ });
3919
+ constructor(method: 'POST', url: string, body: T | null, init?: {
3707
3920
  headers?: HttpHeaders;
3708
3921
  context?: HttpContext;
3709
3922
  reportProgress?: boolean;
3710
3923
  params?: HttpParams;
3711
3924
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
3712
3925
  withCredentials?: boolean;
3926
+ /**
3927
+ * This property accepts either a boolean to enable/disable transferring cache for eligible
3928
+ * requests performed using `HttpClient`, or an object, which allows to configure cache
3929
+ * parameters, such as which headers should be included (no headers are included by default).
3930
+ *
3931
+ * Setting this property will override the options passed to `provideClientHydration()` for this
3932
+ * particular request
3933
+ */
3934
+ transferCache?: {
3935
+ includeHeaders?: string[];
3936
+ } | boolean;
3713
3937
  });
3714
- constructor(method: 'POST' | 'PUT' | 'PATCH', url: string, body: T | null, init?: {
3938
+ constructor(method: 'PUT' | 'PATCH', url: string, body: T | null, init?: {
3715
3939
  headers?: HttpHeaders;
3716
3940
  context?: HttpContext;
3717
3941
  reportProgress?: boolean;
@@ -3726,6 +3950,17 @@ export declare class HttpRequest<T> {
3726
3950
  params?: HttpParams;
3727
3951
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
3728
3952
  withCredentials?: boolean;
3953
+ /**
3954
+ * This property accepts either a boolean to enable/disable transferring cache for eligible
3955
+ * requests performed using `HttpClient`, or an object, which allows to configure cache
3956
+ * parameters, such as which headers should be included (no headers are included by default).
3957
+ *
3958
+ * Setting this property will override the options passed to `provideClientHydration()` for this
3959
+ * particular request
3960
+ */
3961
+ transferCache?: {
3962
+ includeHeaders?: string[];
3963
+ } | boolean;
3729
3964
  });
3730
3965
  /**
3731
3966
  * Transform the free-form body into a serialized format suitable for
@@ -3945,6 +4180,25 @@ export declare const enum HttpStatusCode {
3945
4180
  NetworkAuthenticationRequired = 511
3946
4181
  }
3947
4182
 
4183
+ /**
4184
+ * Options to configure how TransferCache should be used to cache requests made via HttpClient.
4185
+ *
4186
+ * @param includeHeaders Specifies which headers should be included into cached responses. No
4187
+ * headers are included by default.
4188
+ * @param filter A function that receives a request as an argument and returns a boolean to indicate
4189
+ * whether a request should be included into the cache.
4190
+ * @param includePostRequests Enables caching for POST requests. By default, only GET and HEAD
4191
+ * requests are cached. This option can be enabled if POST requests are used to retrieve data
4192
+ * (for example using GraphQL).
4193
+ *
4194
+ * @publicApi
4195
+ */
4196
+ export declare type HttpTransferCacheOptions = {
4197
+ includeHeaders?: string[];
4198
+ filter?: (req: HttpRequest<unknown>) => boolean;
4199
+ includePostRequests?: boolean;
4200
+ };
4201
+
3948
4202
  /**
3949
4203
  * An upload progress event.
3950
4204
  *
@@ -4113,6 +4367,19 @@ export declare class JsonpInterceptor {
4113
4367
  * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
4114
4368
  * `withInterceptors(...)` feature.
4115
4369
  *
4370
+ * <div class="alert is-helpful">
4371
+ *
4372
+ * It's strongly recommended to enable
4373
+ * [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for applications that use
4374
+ * Server-Side Rendering for better performance and compatibility. To enable `fetch`, add
4375
+ * `withFetch()` feature to the `provideHttpClient()` call at the root of the application:
4376
+ *
4377
+ * ```
4378
+ * provideHttpClient(withFetch());
4379
+ * ```
4380
+ *
4381
+ * </div>
4382
+ *
4116
4383
  * @see {@link withInterceptors}
4117
4384
  * @see {@link withInterceptorsFromDi}
4118
4385
  * @see {@link withXsrfConfiguration}
@@ -4220,6 +4487,6 @@ export declare function withXsrfConfiguration({ cookieName, headerName }: {
4220
4487
  * load time.
4221
4488
  *
4222
4489
  */
4223
- export declare function ɵwithHttpTransferCache(): Provider[];
4490
+ export declare function ɵwithHttpTransferCache(cacheOptions: HttpTransferCacheOptions): Provider[];
4224
4491
 
4225
4492
  export { }