Files
SnowLuma/.pnpm-store/v11/files/64/62e122caa8ddaf92ecfe56205984aab58293fb4178e0e84dafb76b1e64c0a597193de02e61532725d87c24a1cb0c8a7bae05cb88a75f6200167a7f8e1e736c
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

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 };