Add quota & requested to QuotaExceededError · whatwg/fetch@3d04edb
noamr
·
2026-01-13
·
via Recent Commits to fetch:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9537,10 +9537,14 @@ method steps are:
|
9537 | 9537 | <p class=note>Requests whose <a for=request>body</a> is a {{ReadableStream}} object cannot be |
9538 | 9538 | deferred. |
9539 | 9539 | |
9540 | | -<li><p>If the <a>available deferred-fetch quota</a> given <var>request</var>'s |
9541 | | -<a for=request>client</a> and <var>request</var>'s <a for=request>URL</a>'s |
9542 | | -<a for=url>origin</a> is less than <var>request</var>'s <a>total request length</a>, then throw a |
9543 | | - "{{QuotaExceededError}}" {{DOMException}}. |
| 9540 | +<li><p>Let <var>quota</var> be the <a>available deferred-fetch quota</a> given <var>request</var>'s |
| 9541 | +<a for=request>client</a> and <var>request</var>'s <a for=request>URL</a>'s <a for=url>origin</a>. |
| 9542 | + |
| 9543 | +<li><p>Let <var>requested</var> be <var>request</var>'s <a>total request length</a>. |
| 9544 | + |
| 9545 | +<li><p>If <var>quota</var> is less than <var>requested</var>, then |
| 9546 | +<a for=exception>throw</a> a {{QuotaExceededError}} whose <a for=QuotaExceededError>quota</a> is |
| 9547 | +<var>quota</var> and <a for=QuotaExceededError>requested</a> is <var>requested</var>. |
9544 | 9548 | |
9545 | 9549 | <li><p>Let <var>activated</var> be false. |
9546 | 9550 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。