namosca on Nostr: Looks like there's Hono compress: import { compress } from 'hono/compress'; const app ...
Looks like there's Hono compress:
import { compress } from 'hono/compress';
const app = new Hono();
app.use(compress());
app.get('/file', async (c) => {
const file = await Deno.open('./path/to/your/file.txt');
return c.res.send(file);
});
Got it from perplexity.ai. I hope it's not BS
import { compress } from 'hono/compress';
const app = new Hono();
app.use(compress());
app.get('/file', async (c) => {
const file = await Deno.open('./path/to/your/file.txt');
return c.res.send(file);
});
Got it from perplexity.ai. I hope it's not BS