@@ -439,6 +439,7 @@ export class HttpRequest<T> {
439439 params ?: HttpParams ;
440440 responseType ?: 'arraybuffer' | 'blob' | 'json' | 'text' ;
441441 withCredentials ?: boolean ;
442+ transferCache ?: { includeHeaders ?: string [ ] } | boolean ;
442443 body ?: T | null ;
443444 method ?: string ;
444445 url ?: string ;
@@ -452,6 +453,7 @@ export class HttpRequest<T> {
452453 params ?: HttpParams ;
453454 responseType ?: 'arraybuffer' | 'blob' | 'json' | 'text' ;
454455 withCredentials ?: boolean ;
456+ transferCache ?: { includeHeaders ?: string [ ] } | boolean ;
455457 body ?: V | null ;
456458 method ?: string ;
457459 url ?: string ;
@@ -466,6 +468,7 @@ export class HttpRequest<T> {
466468 params ?: HttpParams ;
467469 responseType ?: 'arraybuffer' | 'blob' | 'json' | 'text' ;
468470 withCredentials ?: boolean ;
471+ transferCache ?: { includeHeaders ?: string [ ] } | boolean ;
469472 body ?: any | null ;
470473 method ?: string ;
471474 url ?: string ;
@@ -479,6 +482,10 @@ export class HttpRequest<T> {
479482 const url = update . url || this . url ;
480483 const responseType = update . responseType || this . responseType ;
481484
485+ // Carefully handle the transferCache to differentiate between
486+ // `false` and `undefined` in the update args.
487+ const transferCache = update . transferCache ?? this . transferCache ;
488+
482489 // The body is somewhat special - a `null` value in update.body means
483490 // whatever current body is present is being overridden with an empty
484491 // body, whereas an `undefined` value in update.body implies no
@@ -526,6 +533,7 @@ export class HttpRequest<T> {
526533 reportProgress,
527534 responseType,
528535 withCredentials,
536+ transferCache,
529537 } ) ;
530538 }
531539}
0 commit comments