SvelteKit • Reference
@sveltejs/kit/node
On this page
import {
function createReadableStream(file: string): ReadableStreamConverts a file on disk to a readable stream
function createReadableStream(file: string): ReadableStreamConverts a file on disk to a readable stream
createReadableStream,
function getRequest({ request, base, bodySizeLimit }: {
request: import("node:http").IncomingMessage;
base: string;
bodySizeLimit?: number;
}): Promise<Request>
function getRequest({ request, base, bodySizeLimit }: {
request: import("node:http").IncomingMessage;
base: string;
bodySizeLimit?: number;
}): Promise<Request>
getRequest,
function setResponse(res: import("node:http").ServerResponse, response: Response): Promise<void>function setResponse(res: import("node:http").ServerResponse, response: Response): Promise<void>setResponse
} from '@sveltejs/kit/node';getRequest
export function getRequest({ request, base, bodySizeLimit }: {
request: import("http").IncomingMessage;
base: string;
bodySizeLimit?: number;
}): Promise<Request>;setResponse
export function setResponse(res: import("http").ServerResponse, response: Response): Promise<void>;createReadableStream
Available since 2.4.0
Converts a file on disk to a readable stream
export function createReadableStream(file: string): ReadableStream;