12 lines
366 B
Plaintext
12 lines
366 B
Plaintext
import { TEXT_PLAIN } from "../../context.js";
|
|
import { stream } from "./stream.js";
|
|
//#region src/helper/streaming/text.ts
|
|
const streamText = (c, cb, onError) => {
|
|
c.header("Content-Type", TEXT_PLAIN);
|
|
c.header("X-Content-Type-Options", "nosniff");
|
|
c.header("Transfer-Encoding", "chunked");
|
|
return stream(c, cb, onError);
|
|
};
|
|
//#endregion
|
|
export { streamText };
|