Skip to content

What does wasi:http/types.fields#set do if the list of values is empty? #900

Open

Description

@alexcrichton

Currently the documentation doesn't cover this case -- should this trap or be an alias for delete in such a case?

Activity

  1. badeend commented on Mar 10, 2026

    @badeend
    Member

    My 2c: Don't trap. Declare delete to be a semantic alias for set with an empty list.

  2. pchickey commented on Mar 10, 2026

    @pchickey
    Contributor

    Agreed with Dave!

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