aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/server.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-12fix missing error pageGravatar Jarred Sumner 1-3/+3
2023-01-11[Bun.serve] Introduce publishToSelf boolean on websocket: {} config objectGravatar Jarred SUmner 1-45/+81
2023-01-10Allow `tls: true` in Bun.connectGravatar Jarred Sumner 1-1/+22
2023-01-08Add welcome page when viewed from a browserGravatar Jarred Sumner 1-30/+46
2023-01-01clean up `Promise` handling (#1697)Gravatar Alex Lam S.L 1-23/+6
2022-12-30More assertionsGravatar Jarred Sumner 1-3/+3
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-40/+47
* @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-1/+1
fixes #1668
2022-12-11[internal] Change HashMap implementation for storing symbolsGravatar Jarred Sumner 1-1/+0
2022-12-06add server scheduleDeinit, ignore logs in testGravatar Dylan Conway 1-2/+12
2022-12-04content-range is inclusiveGravatar Jarred Sumner 1-1/+1
2022-12-04[Bun.serve] Implement `Content-Range` support with `Bun.file()`Gravatar Jarred Sumner 1-13/+107
2022-12-01Reduce memory usage in Bun.serve() by up to 3x (#1569)Gravatar Jarred Sumner 1-1/+10
* Update WebKit * Use 5x less memory in Bun.serve() * Update Dockerfile.devcontainer * Update async-overhead.mjs Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-34/+34
2022-11-26Make HTTP status text more consistent with other HTTP serversGravatar Jarred Sumner 1-2/+73
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-4/+11
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-22Introduce `Bun.FileSystemRouter` APIGravatar Jarred Sumner 1-1/+0
2022-11-19Introduce `BUN_GARBAGE_COLLECTOR_LEVEL` debug environment variableGravatar Jarred Sumner 1-1/+1
2022-11-18bun test matchers and tests (#1526)Gravatar Dylan Conway 1-1/+1
* ignore webkit for cherry-pick * toContain and toBeTruthy * toBe null, undefined, falsy, toHaveProperty, .not * markBindings * remove toHaveProperty, undo ignore webkit, more tests * undo ignore webkit * remove bad tests * check if length property exists for toHaveLength() * fix call signature * handle argument that is not an integer * getLengthOfArray returns u64 * switch to truncate * toHaveLength() edge cases * add toBooleanSlow() * infinity, nan, negative
2022-11-16Remove incorrect assertionGravatar Jarred Sumner 1-3/+1
2022-11-15Fix another assertion failureGravatar Jarred Sumner 1-1/+1
2022-11-09Implement Server.publish()Gravatar Jarred Sumner 1-0/+61
Fixes https://github.com/oven-sh/bun/issues/1417
2022-11-09Update server.zigGravatar Jarred Sumner 1-0/+3
2022-11-09Fix crash when an exception occurs in open()Gravatar Jarred Sumner 1-6/+15
2022-11-09Fix #1354Gravatar Jarred Sumner 1-2/+4
2022-11-06Fixes https://github.com/oven-sh/bun/issues/1451Gravatar Jarred Sumner 1-1/+7
2022-10-30Updating libuwebsockets C API (#1423)Gravatar Ciro Spaciari 1-1/+1
2022-10-26Prefer `BUN_PORT` over `PORT`bun-v0.2.2Gravatar Jarred Sumner 1-1/+1
2022-10-26Update server.zigGravatar Jarred Sumner 1-1/+1
2022-10-26Make `"tls"` an explicit object we pass instead of implicit top-level optionsGravatar Jarred Sumner 1-4/+18
cc @Electroid @colinhacks
2022-10-24Maybe fix a crashGravatar Jarred Sumner 1-1/+1
2022-10-23Add `fd` to `SystemError` and fix 2 cases with invalid tagged unionGravatar Jarred Sumner 1-9/+3
cc @sno2
2022-10-23fix(web): stop segfault on invalid fd error (#1386)Gravatar Carter Snook 1-1/+5
2022-10-21CodegenGravatar Jarred Sumner 1-8/+10
2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 1-0/+9
2022-10-19Fix calling `ws.publish` inside `close` when other clients are connectedGravatar Jarred Sumner 1-23/+37
This fixes https://github.com/oven-sh/bun/issues/1357
2022-10-19Allow returning a Response object when upgradingGravatar Jarred Sumner 1-6/+21
2022-10-17Fix error handlerGravatar Jarred Sumner 1-3/+8
2022-10-17Workaround crashGravatar Jarred Sumner 1-2/+18
2022-10-17Implement `sendText`, `sendBinary`, `publishText`, `publishBinary`Gravatar Jarred Sumner 1-5/+366
2022-10-17Clean up some codeGravatar Jarred Sumner 1-34/+28
2022-10-17Fix headers + add testGravatar Jarred Sumner 1-0/+8
2022-10-17Implement `error` and `binaryType`Gravatar Jarred Sumner 1-19/+141
2022-10-17Redo WebSocket apiGravatar Jarred Sumner 1-373/+415
2022-10-16Disable InlineBlob optimizationGravatar Jarred Sumner 1-27/+35
2022-10-15Dumber code is better codeGravatar Jarred Sumner 1-1/+3
2022-10-15Errors must return 0 instead of undefinedGravatar Jarred Sumner 1-1/+2
2022-10-15Add a helper for InlineBlob from two arraysGravatar Jarred Sumner 1-4/+1
2022-10-15More loggingGravatar Jarred Sumner 1-5/+5
2022-10-15More lenient for response_value dataGravatar Jarred Sumner 1-1/+1