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

Enhancement: API/unstable_dev should expose a fetch() function #1383

Closed
rozenmd opened this issue Jul 1, 2022 · 0 comments · Fixed by #1386 or #1336
Closed

Enhancement: API/unstable_dev should expose a fetch() function #1383

rozenmd opened this issue Jul 1, 2022 · 0 comments · Fixed by #1386 or #1336
Labels
enhancement New feature or request

Comments

@rozenmd
Copy link
Contributor

rozenmd commented Jul 1, 2022

From #1350 (comment):
It might be nice to hide the undici library, and also the underlying port, side of this and provide:

worker.fetch()

This method could take a path (or even a full URL if you wanted to simulate a custom route). This would also mitigate the case where port 8787 was not available and we ended up jumping on a different port, which I think we can do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant