1234567891011121314151617 |
- /// <reference types="node" />
- import type { ServerResponse } from 'http';
- declare type ContentTypeOption = string | undefined;
- export default class RenderResult {
- private _result;
- private _contentType;
- constructor(response: string | ReadableStream<Uint8Array>, { contentType }?: {
- contentType?: ContentTypeOption;
- });
- contentType(): ContentTypeOption;
- toUnchunkedString(): string;
- pipe(res: ServerResponse): Promise<void>;
- isDynamic(): boolean;
- static fromStatic(value: string): RenderResult;
- static empty: RenderResult;
- }
- export {};
|