Skip to content

[v1.0] pass request-options to outgoing-handler by borrow #796

Open

Description

@pchickey

In 0.2, outgoing-handler gets passed an option<request-options>:

  @since(version = 0.2.0)
  handle: func(
    request: outgoing-request,
    options: option<request-options>
  ) -> result<future-incoming-response, error-code>;

It would be nice if this was instead an option<borrow<request-options>> so that the same options could be reused across many requests.

We can't change this in 0.2 because it would be a breaking change, but we should take the opportunity to fix it in 0.3.

Activity

  1. added
    S-inactiveStatus: no discussion in over a year. Records silence during triage; not a proposal to close.
    on Aug 20, 2026
  2. lann commented on Sep 11, 2026

    @lann
    Contributor

    This didn't make it into 0.3 but I think its still a valid suggestion for 1.0. Updating the title to reflect that.

  3. changed the title [-][v0.3] pass `request-options` to `outgoing-handler` by `borrow`[/-] [+][v1.0] pass `request-options` to `outgoing-handler` by `borrow`[/+] on Sep 11, 2026
  4. added
    proposalA discussion about a specific actionable item
    and removed
    S-inactiveStatus: no discussion in over a year. Records silence during triage; not a proposal to close.
    on Sep 11, 2026
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-httpproposalA discussion about a specific actionable item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions