(req: Request)
| 613 | } |
| 614 | |
| 615 | private async safeFetch(req: Request): Promise<Response> { |
| 616 | try { |
| 617 | return this.scope.fetch(req); |
| 618 | } catch { |
| 619 | return this.adapter.newResponse(null, { |
| 620 | status: 504, |
| 621 | statusText: 'Gateway Timeout', |
| 622 | }); |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | /** |
| 627 | * Detect if storage is full or approaching capacity. |
no test coverage detected