@sveltejs/kit/node
import {
createReadableStream,
getRequest,
setResponse
} from '@sveltejs/kit/node';createReadableStream
Available since 2.4.0
Converts a file on disk to a readable stream
function createReadableStream(file: string): ReadableStream;getRequest
function getRequest({
request,
response,
base,
bodySizeLimit
}: {
request: import('http').IncomingMessage;
response?: import('http').ServerResponse;
base: string;
bodySizeLimit?: number;
}): Request;setResponse
function setResponse(
res: import('http').ServerResponse,
response: Response
): void;Edit this page on GitHub llms.txt
previous next