0

我想在拦截器中使用缓存 API来缓存 API 响应。问题是 Angular HTTP 拦截器的 HttpHander使用 HttpRequest 和 HttpResponse 接口而不是默认的 Request Response 对象。我知道我可以自己创建 javascript ResponseRequest,但是有没有更简单的方法可以将 HttpResquest 和 HttpResponse 转换为其本机对应项?

4

0 回答 0