We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
body
This is being left here to make it searchable:
If the scenario arises where you absolutely must have a copy of the result stream, .clone can be used before using a body mixin, or body.pipeThrough with a user-defined stream §, such as [TransformStream]https://nodejs.org/api/stream.html#duplex-and-transform-streams.
.clone
body.pipeThrough
TransformStream
The text was updated successfully, but these errors were encountered:
@shellscape I don't think pipeThrough works. It still marks the body as consumed.
pipeThrough
console.log(request.bodyUsed) request.body.pipeThrough(new TextDecoderStream()) console.log(request.bodyUsed)
This prints out false, then true. How can we copy/clone the stream without causing bodyUsed to become true?
false
true
bodyUsed
Sorry, something went wrong.
No branches or pull requests
This is being left here to make it searchable:
If the scenario arises where you absolutely must have a copy of the result stream,
.clone
can be used before using abody
mixin, orbody.pipeThrough
with a user-defined stream §, such as [TransformStream
]https://nodejs.org/api/stream.html#duplex-and-transform-streams.The text was updated successfully, but these errors were encountered: