有没有办法在 Angular 6 中从 HttpInterceptor 注入 observe: 'response'?

Is there a way to inject observe: 'response' from HttpInterceptor in Angular 6?

我的应用使用以下 this._http.get("SomeUrl", {observe:"response"}); 我能够在 HttpInterceptor 中设置 headers 和参数来进行所有 api 调用并使用自定义 header 接收响应。 我的问题是是否有一种方法可以在 HttpInterceptor 中为所有 api 调用设置 {observe:"response"} 就像我们可以全局设置 headers 和参数一样? 任何帮助将不胜感激。

{观察:"response"});必须始终与 http 方法调用一起作为参数。自定义响应 header 然后可以在 HttpInterceptor 中读取。