@werker/html
Version:
HTML templating and streaming response library for worker environments such as Cloudflare Workers
16 lines • 666 B
TypeScript
import { HTML } from './html';
export declare class HTMLResponse extends Response {
constructor(html: HTML, init?: ResponseInit);
}
/** @deprecated You can now use HTMLResponse in Cloudflare Workers */
export declare class CFWorkersHTMLResponse extends HTMLResponse {
}
/**
* If for any reason you don't want to use streaming response bodies,
* you can use this class instead, which will buffer the entire body before releasing it to the network.
* Note that headers will still be sent immediately.
*/
export declare class BufferedHTMLResponse extends Response {
constructor(html: HTML, init?: ResponseInit);
}
//# sourceMappingURL=html-response.d.ts.map