Skip to content

Commit 926be41

Browse files
committed
fix(api): Modified API
1 parent 68ac003 commit 926be41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/interceptor-service.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ export class InterceptorService extends Http {
216216
this._realResponseObservableTransformer = value;
217217
}
218218

219+
public newHttpNative(): HttpDirect {
220+
return new this.HttpDirect();
221+
}
222+
219223
/** Private functions **/
220224
private httpRequest(
221225
request: InterceptorRequest,
@@ -264,7 +268,7 @@ export class InterceptorService extends Http {
264268
response$ = this._realResponseObservableTransformer.transform(
265269
response$,
266270
transformedRequest,
267-
new this.HttpDirect(),
271+
this.newHttpNative(),
268272
this
269273
);
270274
}
@@ -551,7 +555,7 @@ export class InterceptorService extends Http {
551555
* This interface allows consumers to make calls directly to HTTP calls
552556
* without being intercepted by {@code InterceptorService}; i.e `this`
553557
*/
554-
public get HttpDirect() {
558+
private get HttpDirect() {
555559
const interceptorService = this;
556560

557561
return class implements HttpDirect {

0 commit comments

Comments
 (0)