mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
We support streaming `multipart/form-data` in Node.js using Busboy since that's kind of the idiomatic ecosystem way for handling these stream there. There's not really anything idiomatic like that for Edge that's universal yet. This adds a version that's basically just `AsyncIterable.from(formData)`. It could also be a `ReadableStream` of those entries since those are also `AsyncIterable`. I imagine that in the future we might add one from a binary `ReadableStream` that does the parsing built-in.
22 lines
501 B
JavaScript
22 lines
501 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
export {
|
|
renderToReadableStream,
|
|
decodeReply,
|
|
decodeReplyFromAsyncIterable,
|
|
decodeAction,
|
|
decodeFormState,
|
|
createClientReference,
|
|
registerServerReference,
|
|
createTemporaryReferenceSet,
|
|
registerServerActions,
|
|
loadServerAction,
|
|
} from './src/server/react-flight-dom-server.edge';
|