Skip to content

Commit 3199f81

Browse files
committed
fix(http): remove implementation limit recommendations
Specific minimum sizes are intentionally left unspecified. Implementations operate in diverse environments with varying constraints, so limits are implementation-defined. Making operations fallible with size-exceeded is sufficient to ensure correct error handling without prescribing specific thresholds.
1 parent a16e471 commit 3199f81

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1+
[cli]
2+
path = "../../cli/wit-0.3.0-draft"
3+
sha256 = "70e772c3bae2d07588573a916e6092b57bd2543c9765e9cbfa8af338acd6f687"
4+
sha512 = "8a5106530665422441388bab1690d197270baafbff2486f737b401e95d557e9f0b1431be1af563c4d170078b030e69efc833d105f893f01ec71e9d966ef31c2f"
5+
deps = ["filesystem", "random", "sockets"]
6+
17
[clocks]
28
path = "../../clocks/wit-0.3.0-draft"
39
sha256 = "888647625fec3eaaf276cb884e426bc32bfa79ced22955f10eb239df74c8550c"
410
sha512 = "f08a2828b88fc6ddea935af584531c484ad4a7a5f30340265e11e91b2bfe0f81e74a660a512f72e5197d60278feccc00534833ebd73868e801859dd31a61bdbb"
511

612
[filesystem]
7-
path = "../../filesystem/wit-0.3.0-draft"
8-
sha256 = "8808ea3adfbc1a025d649b82ddf4f38232ca4377100cfe671d80d5ee37fa3147"
9-
sha512 = "19f4eb8fa62e96ba37b3ea231af6a3bc396c28f82935018a3322441321936b34fb0e44360b378145fcb681d9fea810745969d8baab02ae6017be1784be8abe45"
13+
sha256 = "5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
14+
sha512 = "8efb4f73c5655351c444eb109230c556d39e2c7624e9c11abc9e3fb4b9b9254218cc5085b454a9698d085cfa92198491f07a723be4574adc70617b73eb0b6461"
1015

1116
[random]
12-
path = "../../random/wit-0.3.0-draft"
13-
sha256 = "5794796c909d6656fcbae6bed28265210ca57308a624119ac0a472326a75aa8f"
14-
sha512 = "812ce57aa13ff3128779d41f4dad50714365e4f9cfd2e1b13458a885fa65da05e409f145deefa25c4a82e0e301a41e2e6572705b35752dc33908d565a73a2e9c"
17+
sha256 = "5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
18+
sha512 = "8efb4f73c5655351c444eb109230c556d39e2c7624e9c11abc9e3fb4b9b9254218cc5085b454a9698d085cfa92198491f07a723be4574adc70617b73eb0b6461"
1519

1620
[sockets]
17-
path = "../../sockets/wit-0.3.0-draft"
18-
sha256 = "0be70fab90ec1d62e620f37f8fc55397222ceb68ca8387eb0503df7173782634"
19-
sha512 = "997e336258dd3d8d1bf1b27463e77d1dc2160eb13fff899c93b446973f5efbc59448a23279b60568679c08e006a20cc88769ec74d6d30baa4e7a17df0bdb2c30"
21+
sha256 = "5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
22+
sha512 = "8efb4f73c5655351c444eb109230c556d39e2c7624e9c11abc9e3fb4b9b9254218cc5085b454a9698d085cfa92198491f07a723be4574adc70617b73eb0b6461"

proposals/http/wit-0.3.0-draft/deps.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ sha256 = "8808ea3adfbc1a025d649b82ddf4f38232ca4377100cfe671d80d5ee37fa3147"
1414
sha512 = "19f4eb8fa62e96ba37b3ea231af6a3bc396c28f82935018a3322441321936b34fb0e44360b378145fcb681d9fea810745969d8baab02ae6017be1784be8abe45"
1515

1616
[random]
17-
sha256 = "5794796c909d6656fcbae6bed28265210ca57308a624119ac0a472326a75aa8f"
18-
sha512 = "812ce57aa13ff3128779d41f4dad50714365e4f9cfd2e1b13458a885fa65da05e409f145deefa25c4a82e0e301a41e2e6572705b35752dc33908d565a73a2e9c"
17+
sha256 = "e51ca727c7bbc0f5b6d7e52bb68d5d838a1c8f3d3ae683cf1c0f247b91b0633f"
18+
sha512 = "77791400acebdea60c35a3ca455ad73bc64584840a42fb2365bcfee6cff835fb14fb625145cdbde6cb7a153c841b479393dde8aa0f21bc7bab7046aca541aefb"
1919

2020
[sockets]
2121
sha256 = "0be70fab90ec1d62e620f37f8fc55397222ceb68ca8387eb0503df7173782634"

proposals/http/wit-0.3.0-draft/types.wit

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ interface types {
121121
/// implementation-defined limit on field sizes. This may apply to
122122
/// an individual `field-value`, a single `field-name` plus all its
123123
/// values, or the total aggregate size of all fields.
124-
///
125-
/// Implementations MUST accept individual field values of at least
126-
/// 8192 bytes and total aggregate field sections of at least 16384
127-
/// bytes. These minimums ensure portability across common HTTP
128-
/// servers and match HTTP/2's minimum SETTINGS_MAX_FRAME_SIZE.
129124
size-exceeded,
130125

131126
/// This is a catch-all error for anything that doesn't fit cleanly into a
@@ -188,9 +183,7 @@ interface types {
188183
///
189184
/// Implementations may impose limits on individual field values and on total
190185
/// aggregate field section size. Operations that would exceed these limits
191-
/// fail with `header-error.size-exceeded`. Implementations MUST accept
192-
/// individual field values of at least 8192 bytes and total aggregate field
193-
/// sections of at least 16384 bytes.
186+
/// fail with `header-error.size-exceeded`
194187
@since(version = 0.3.0-rc-2026-02-09)
195188
resource fields {
196189

0 commit comments

Comments
 (0)