Stream: git-wasmtime

Topic: wasmtime / issue #11772 WASIp3 request#set-method is more...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2025 at 14:55):

wingo added the bug label to Issue #11772.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2025 at 14:55):

wingo opened issue #11772:

Apologies for these bugs, but I like for things to be clear :) So the WASI spec says:

    /// Set the Method for the Request. Fails if the string present in a
    /// `method.other` argument is not a syntactically valid method.
    set-method: func(method: method) -> result;

If we take the approach in https://github.com/WebAssembly/wasi-http/issues/178, then we define syntactic validity according to RFC 9110 §9.1:

  method = token
  token          = 1*tchar
  char          = "!" / "#" / "$" / "%" / "&" / "'" / "*"
                 / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
                 / DIGIT / ALPHA
                 ; any VCHAR, except delimiters

OK, weird that "!" can be a method, but OK.

Only, Wasmtime rejects the following method names: #, $, %, &, and '. The others work!

What should change here, if anything? :)

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2025 at 14:58):

alexcrichton added the wasi:impl label to Issue #11772.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2025 at 15:03):

bjorn3 commented on issue #11772:

I think the http crate just needs to be updated: https://github.com/hyperium/http/pull/713

view this post on Zulip Wasmtime GitHub notifications bot (Oct 02 2025 at 10:58):

tschneidereit commented on issue #11772:

Apologies for these bugs, but I like for things to be clear :)

Truly, how dare you report issues you find! (Seriously: thank you for doing this!)


Last updated: Dec 06 2025 at 07:03 UTC