@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,
base,
bodySizeLimit
}: {
request: import('http').IncomingMessage;
base: string;
bodySizeLimit?: number;
}): Promise<Request>;setResponse
function setResponse(
res: import('http').ServerResponse,
response: Response
): Promise<void>;Edit this page on GitHub llms.txt
previous next