12345678910111213141516171819202122232425262728293031323334 |
- import { createHeaders } from './utils/createHeaders.js';
- import { concatenate } from './concatenate.js';
- import './_version.js';
- function concatenateToResponse(sourcePromises, headersInit) {
- const { done, stream } = concatenate(sourcePromises);
- const headers = createHeaders(headersInit);
- const response = new Response(stream, { headers });
- return { done, response };
- }
- export { concatenateToResponse };
|