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

API: Streams #128

Open
Nicell opened this issue Mar 29, 2025 · 0 comments
Open

API: Streams #128

Nicell opened this issue Mar 29, 2025 · 0 comments
Labels
bikeshed Debating the best name or API for something. std Work in the Luau standard library portion of the code

Comments

@Nicell
Copy link
Contributor

Nicell commented Mar 29, 2025

A lot of our asynchronous I/O APIs should have stream support.

  • net.requestAsync should allow for streaming the response
    • streaming the body for POST requests would be cool, too
  • net.serve should allow for streaming the request as well as streaming the response back
  • fs read and writing to files should support streams
  • process should support streaming to stdin and from stdout/stderr when creating new processes

The API and ergonomics of streams can be discussed in this issue.

@aatxe aatxe added bikeshed Debating the best name or API for something. std Work in the Luau standard library portion of the code labels Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bikeshed Debating the best name or API for something. std Work in the Luau standard library portion of the code
Projects
None yet
Development

No branches or pull requests

2 participants