Skip to content

Specify what happens when IPv6 is unavailable #779

@wingo

Description

@wingo

Consider the URL with https://[::1]/. The scheme is https, the authority is the IPv6 literal [::1], and the path-and-query is /. Wasmtime currently fails to set [::1] as an authority. I guess this is a lack of IPv6, though cc @lann for input.

Anyway let's consider that it's OK to not support IPv6. When should an error occur?

MHO: when a request is actually handled. This would be consistent with the language in the WIT:

    /// It is possible to construct, or manipulate with the accessor functions
    /// below, a `request` with an invalid combination of `scheme`
    /// and `authority`, or `headers` which are not permitted to be sent.
    /// It is the obligation of the `handler.handle` implementation
    /// to reject invalid constructions of `request`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasi-httpIssues targeted for the `wasi-http` proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions