fix: chunked processing (partly)

This commit is contained in:
Samuel 2024-12-24 12:16:15 +01:00
parent a581e2326b
commit b3e3eb7270
10 changed files with 758 additions and 108 deletions

34
test/index.js Normal file
View file

@ -0,0 +1,34 @@
const server = Bun.serve({
static: {
"/": new Response(await Bun.file("./dist/index.html").bytes(), {
headers: {
"Content-Type": "text/html",
},
}),
"/index.js": new Response(await Bun.file("./dist/index.js").bytes(), {
headers: {
"Content-Type": "text/javascript",
},
}),
"/pkg/signal_decrypt_backup_wasm.js": new Response(
await Bun.file("../pkg/signal_decrypt_backup_wasm.js").bytes(),
{
headers: {
"Content-Type": "text/javascript",
},
},
),
"/pkg/signal_decrypt_backup_wasm_bg.wasm": new Response(
await Bun.file("../pkg/signal_decrypt_backup_wasm_bg.wasm").bytes(),
{
headers: {
"Content-Type": "application/wasm",
},
},
),
},
fetch(req) {
console.log(req);
return new Response("404!");
},
});