Skip to content

Expected behavior for method and scheme when passed an other with a well-known name #781

Open

Description

@wingo

What is the expected behavior if we set-method(other("GET")) ? Should it error, or should it resolve to method::get, or stay as other?

Similar for set-scheme(other("https")), but there since schemes are case-insensitive, we should also ask about set-scheme(other("HTTPS")).

Activity

  1. wingo commented on Oct 2, 2025

    @wingo
    ContributorAuthor

    JFYI, in Wasmtime set-method of Method::Other("GET") results in Method::Get, which to me seems like desired behavior. Similarly for Scheme::Other("https"). However Wasmtime currently doesn't apply case-insensitivity to schemes (bytecodealliance/wasmtime#11778 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-httpProposal: wasi-http

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions