Repository navigation
Add experimental HTTP filter world - #973
Open
yoshuawuyts wants to merge 1 commit into
Open
yoshuawuyts wants to merge 1 commit into
yoshuawuyts wants to merge 1 commit into
Conversation
Member
Author
|
It seems CI on main is failing, causing CI for this PR to fail. Probably because of #972 which we merged earlier. Investigating how to fix that. |
yoshuawuyts
force-pushed
the
yoshuawuyts-http-filter-world
branch
from
December 4, 2026 21:37
a5e8cec to
6dcf957
Compare
yoshuawuyts
changed the base branch from
main
to
yoshuawuyts-wit-dependency-bootstrap
December 4, 2026 21:49
Signed-off-by: Yosh <github@yosh.is>
yoshuawuyts
force-pushed
the
yoshuawuyts-http-filter-world
branch
from
December 4, 2026 21:53
6dcf957 to
d299019
Compare
Member
|
In addition to resource-constrained environments, this can also allow simple applications to reach greater scalability, so +1 from me. |
mattmccreesh
reviewed
Dec 5, 2026
|
|
||
| /// This is the default `client` to use when user code simply wants to make an | ||
| /// HTTP request (e.g., via `fetch()`). | ||
| import client; |
There was a problem hiding this comment.
Edge Actions currently does not support guest-initiated outbound HTTP. Is client intended to be optional once Component Model optional imports land? For the initial version, can we explicitly document that hosts may deny all client.send calls with HTTP-request-denied if they don't support outbound requests?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey all, this adds an experimental new world
wasi:http/filterand interfacefilter-handlerwhich are optimized for resource-constrained environments. Unlikewasi:http/middleware,filtersplits handling the request and handling the response so it can be done by two separate component instances. Depending on the use case can save a fair bit on memory.This interface is however not without its tradeoffs:
wasi:http/middlewarewill always be more flexible and easier to compose. But at least at Microsoft we’re working with systems for which the middleware world still has too much overhead, and so I’d like to propose a minor extension that is mostly compatible withmiddleware, but carries less overhead.In terms of implementation: this API should be entirely shimmable on top of
wasi:http/middleware. The additional cost for existing runtimes to support this should be minimal. Thanks!