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

Fetch #59

Closed
wants to merge 30 commits into from
Closed

Fetch #59

wants to merge 30 commits into from

Conversation

noise64
Copy link

@noise64 noise64 commented Jun 5, 2024

No description provided.

tschneidereit and others added 30 commits May 29, 2024 13:32
SpiderMonkey uses the `encoding_c` Rust crate and comes bundled with it. This lead to either duplication or linking errors when using our own crate re-exporting `encoding_c`.

Instead, with this PR we just bundle a C header file for interacting with the crate's functionality, and rely on SpiderMonkey's version.
`HostString` converts to `string_view`, so this makes `decode` easy to use from more places.
…ring wizening

The idea is that with this, builtins handling runtime events can dynamically load and execute a top-level script as needed.

This functionality isn't actually used in this commit, but will be in another commit changing how incoming HTTP requests are handled.
Gets back to passing all current tests, and most of the WPT suite that Fastly's JS Compute runtime passes.
This changes the implementation of the handle abstraction to make it more robust, and cleans it up at least somewhat.
# Conflicts:
#	CMakeLists.txt
#	builtins/web/fetch/fetch_event.cpp
#	builtins/web/fetch/request-response.cpp
@noise64 noise64 closed this Jun 5, 2024
@noise64 noise64 deleted the fetch branch June 5, 2024 08:30
@noise64 noise64 restored the fetch branch June 5, 2024 13:28
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.

3 participants