我希望以上所有内容都作为一个可观察对象返回,但对于应该相继发生的两个操作应该如何使用RxJS方法进行构造,我感到困惑不已。this.http.post('http://localhost/auth/token', creds, {})) // get user details
this.http.get(url, option
一切都很好,除了我不知道如何将post、get、patch、put和delete方法的返回类型设置为使用构造函数选项提供的responseType (参见responseType: options?."json",)。 我使用重写通过responseType方法参数(如果提供)来设置返回类型,但我不知道如何为构造函数选项执行此操作。我真的需要你帮个忙!"json"; // Default response type is JSON