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

FixedLengthStream is not implemented #123

Closed
vlovich opened this issue Dec 14, 2021 · 1 comment
Closed

FixedLengthStream is not implemented #123

vlovich opened this issue Dec 14, 2021 · 1 comment
Labels
fixed-in-next Fixed in next release new api Unsupported new Workers runtime API

Comments

@vlovich
Copy link
Contributor

vlovich commented Dec 14, 2021

FixedLengthStream is like a normal TransformStream except that it enforces that you can only write the expected length number of bytes. Additionally, when given to a Request/Response object as the body, it causes the Content-Length header to be set to the value provided. Attempts to terminate the write end before the expected length is written or attempting to write more than that should throw a TypeError.

mrbbot added a commit that referenced this issue Dec 15, 2021
@mrbbot mrbbot added fixed-in-next Fixed in next release new api Unsupported new Workers runtime API labels Dec 15, 2021
@mrbbot
Copy link
Contributor

mrbbot commented Dec 18, 2021

Hey! 👋 Miniflare 2.0.0-rc.4 has just been released, which implements FixedLengthStream. It also switches back to CommonJS exports making it easier to use Miniflare with Jest. 🙂 You can find the full changelog here.

@mrbbot mrbbot closed this as completed Dec 18, 2021
mrbbot added a commit that referenced this issue Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-in-next Fixed in next release new api Unsupported new Workers runtime API
Projects
None yet
Development

No branches or pull requests

2 participants