aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/serve.test.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-04[Bun.serve] Implement `Content-Range` support with `Bun.file()`Gravatar Jarred Sumner 1-1/+159
2022-12-02Update testGravatar Jarred Sumner 1-25/+33
2022-12-02[fetch] Implement `Headers#getAll` and `Headers#getSetCookie()`Gravatar Jarred Sumner 1-0/+25
This matches Deno's behavior (get() combines, iterator preserves the order, set and append combine), but implements both the Cloudflare Workers `getAll()` and the potential standard `getSetCookie` function. The rationale for choosing both is to better support libraries which check for `getAll` and also because `getSetCookie` seems a little confusing (names are hard) This also makes `.toJSON` and JSON.stringify return an array for `Set-Cookie`
2022-11-26Make HTTP status text more consistent with other HTTP serversGravatar Jarred Sumner 1-0/+80
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-14/+14
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-11-09Fix #1354Gravatar Jarred Sumner 1-1/+23
2022-11-08Fixes #1426Gravatar Jarred Sumner 1-2/+19
2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 1-1/+5
2022-10-09Add a test for server.reload()Gravatar Jarred Sumner 1-17/+35
2022-09-22Add epoll to list of syscalls that can failGravatar Jarred Sumner 1-28/+57
2022-09-221 event loop per thread. Instead of 3.Gravatar Jarred Sumner 1-21/+35
uWebSockets and uSockets will need to be upgraded to match the changes. Previously: - Bun had a separate kqueue/eventfd just for async wakeups. - Bun had a separate kqueue/epoll just for reading files non-blocking in the same thread This commit unifies it into one event loop per thread
2022-09-19Implement `imports` in package.json (`#foo` imports)Gravatar Jarred Sumner 1-20/+20
Fixes https://github.com/oven-sh/bun/issues/478 Fixes https://github.com/oven-sh/bun/issues/234 Fixes https://github.com/oven-sh/bun/issues/822
2022-09-16Make new HTTP client more stableGravatar Jarred Sumner 1-1/+0
2022-09-07Fix flaky testsGravatar Jarred Sumner 1-7/+15
2022-07-01Add some tests for error handlingGravatar Jarred Sumner 1-1/+187
2022-06-27[http server] couple more testsGravatar Jarred Sumner 1-1/+46
2022-06-27[web streams] Add more testsGravatar Jarred Sumner 1-81/+131
2022-06-26wip ReadableStream for HTTP(s) ServerGravatar Jarred Sumner 1-64/+190
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+82