Han*_*ans 1 http angular retrywhen angular5
当呼叫挂起时间超过几秒钟时,Angular 是否可以重试连接?
pre*_*fly 8
pipe应该可以通过 Rxjs 的,timeout和的组合来实现retry。如果timeout超过,retry4次,否则,catchError。
pipe
timeout
retry
catchError
return this.httpClient.post(url, data, httpOptions).pipe( timeout(3000), retry(4), catchError(<DO SOMETHING>) );
归档时间:
8 年,4 月 前
查看次数:
2890 次
最近记录: