Skip to content

p3: Consider bringing back the imports world for wasi-http #872

@ricochet

Description

@ricochet

Consider bringing back the imports world for wasi-http.

A valid usage of wasi-http is to consume only the types (no exports) and use some other export other than the worlds in wasi:http.

While updating the wasi-testsuite with the latest rc, there is a test that uses the HTTP response type even though it's not serving/handling or making client requests. In this scenario this was a test in wasi:cli/run. To workaround the lack of an imports world, I had to implement the handler trait: https://github.com/WebAssembly/wasi-testsuite/pull/200/files#diff-496dfc45abfcebe766d04da19e6c044b10b192b03b80fe7bf97788fe4bc42c14R67-R72

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