You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: