aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/serve.test.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 1-981/+0
2023-02-22Add leaky testGravatar Jarred Sumner 1-0/+38
2023-02-22Add a request.signal test with Bun.serveGravatar Jarred Sumner 1-7/+35
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-120/+67
2023-01-23enhancement(fetch): Merge parameters from request parameter with the second ↵Gravatar Ciro Spaciari 1-1/+0
parameter for fetch, move verbose and proxy options to second parameter, add non-TLS tests for fetch (#1862) * initial steps for proxy-server * added http_proxy in fetch, move 3rd argument to 3nd argument options, add some non-TLS proxy tests * some changes * use only 1 buffer for url+proxy, merge headers on fetch * initial steps * change back to override headers instead of merging in fetch * fix build response.zig * fix conditional in merged headers on fetch * updated with main and make proxy disabled if null is passed Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-15[Response] reject HTTP status code correctly (#1800)Gravatar Alex Lam S.L 1-9/+40
2023-01-15fix handler reset in `Server.reload()` (#1801)Gravatar Alex Lam S.L 1-1/+1
2023-01-12Update serve.test.tsGravatar Jarred Sumner 1-1/+1
2023-01-08[internal] Fix checking for Error objectGravatar Jarred Sumner 1-8/+60
2023-01-01Add a test for empty chunksGravatar Jarred Sumner 1-0/+41
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-381/+499
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-27emit `206 Partial Content` only for partial response (#1670)Gravatar Alex Lam S.L 1-441/+297
fixes #1668
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