Initial commit
This commit is contained in:
commit
b3a51a4115
10336 changed files with 2381973 additions and 0 deletions
12
node_modules/hono/dist/helper/streaming/text.js
generated
vendored
Normal file
12
node_modules/hono/dist/helper/streaming/text.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// src/helper/streaming/text.ts
|
||||
import { TEXT_PLAIN } from "../../context.js";
|
||||
import { stream } from "./index.js";
|
||||
var 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);
|
||||
};
|
||||
export {
|
||||
streamText
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue