Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill in more of README.md, add Luke Wagner to champions #51

Merged
merged 3 commits into from
Sep 18, 2023

Conversation

lukewagner
Copy link
Member

This PR also adds me to the list of champions, hence my request for approval from the existing champions. The PR also fills in more of README.md, better aligning it with the WASI template. Lastly, I merged incoming-handler.wit/outgoing-handler.wit into handler.wit since now that's easy in Wit and it seems convenient to be able to read them in juxtaposition.

As next steps, in preparation for Stage 2, I plan to:

Copy link
Collaborator

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Collaborator

@danbugs danbugs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mossaka Mossaka merged commit 423d20d into main Sep 18, 2023
1 check passed
pchickey pushed a commit to WebAssembly/WASI that referenced this pull request Sep 18, 2023
pchickey pushed a commit to WebAssembly/WASI that referenced this pull request Sep 18, 2023
@PiotrSikora
Copy link
Collaborator

This PR also adds me to the list of champions, hence my request for approval from the existing champions.

I'm obviously supportive, since you've been doing all the work in this repo, but doesn't the process require the group to vote on this in the meeting?

Copy link
Collaborator

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-merge LGTM!

@pchickey
Copy link
Contributor

The process for adding champions is just to have the consent of the existing champions - no vote or subgroup meeting is required.

pchickey pushed a commit to WebAssembly/WASI that referenced this pull request Sep 20, 2023

WASI-http must have at least two complete independent implementations. One
implementation must execute in a browser and may be implemented in terms of the
[Fetch API] using JavaScript. The other implementation must be implemented

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this say FetchEvent ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. The Fetch API (specified here) is for outgoing requests, but you're right that FetchEvent is also necessary for incoming requests, and I think they're in the Service Worker spec (here), which is separate. So I guess a fix would be to mention FetchEvent in addition to the Fetch API, linking to the SW spec, if that sounds right to you.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully those browser APIs mirror each other and there is no surprise. Maybe linking both it the right thing to do.

There will be interesting details about streaming behavior of request and response. I know that not all browsers implement streaming in fetch. They buffer first until they have full body. Only Chromium knows how to stream.

And I don't know that is also true for service worker.

That said, maybe this WASI api could consider those details.

I guess other implementers may have similar limitations.

Also aborting, timeouts and canceling of promises is interesting in this context (in order to safe bandwidth and/or memory when you don't need the data anymore). Browsers implement those gradually ...

Sorry I have not looked at this WIT yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants