Skip to content

Commit ff91f9c

Browse files
committed
Annotate HttpInterceptorServiceFactoryProvider and HttpInterceptorServiceFactory as deprecated
1 parent 7ca7f4c commit ff91f9c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/app/http-interceptor.service.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,28 @@ export class HttpInterceptorService extends Http {
6969
}
7070
}
7171

72+
/**
73+
* @deprecated Prefer the new HttpClientModule.
74+
* From 4.3, Http interceptors are built in.
75+
*
76+
* The next release of ng-http-loader will require angular ^4.3.0.
77+
* Please upgrade !
78+
*
79+
* @see https://angular.io/guide/http
80+
*/
7281
export function HttpInterceptorServiceFactory(backend: XHRBackend, defaultOptions: RequestOptions) {
7382
return new HttpInterceptorService(backend, defaultOptions);
7483
}
7584

85+
/**
86+
* @deprecated Prefer the new HttpClientModule.
87+
* From 4.3, Http interceptors are built in.
88+
*
89+
* The next release of ng-http-loader will require angular ^4.3.0.
90+
* Please upgrade !
91+
*
92+
* @see https://angular.io/guide/http
93+
*/
7694
export let HttpInterceptorServiceFactoryProvider = {
7795
provide: HttpInterceptorService,
7896
useFactory: HttpInterceptorServiceFactory,

0 commit comments

Comments
 (0)