fix: chunked processing (partly)
This commit is contained in:
parent
a581e2326b
commit
b3e3eb7270
10 changed files with 758 additions and 108 deletions
34
test/index.js
Normal file
34
test/index.js
Normal 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!");
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue