aboutsummaryrefslogtreecommitdiff
path: root/src/http.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-03-24Implement error page for HTTP serverGravatar Jarred Sumner 1-135/+32
2022-03-17Move `Bun` to JSC.APIGravatar Jarred Sumner 1-2/+2
2022-03-17query_string_map -> urlGravatar Jarred Sumner 1-1/+1
2022-03-14Fix a couple memory leaks in `bun dev`Gravatar Jarred Sumner 1-25/+88
2022-03-14[bun dev] Fix crash on macOSGravatar Jarred Sumner 1-0/+14
2022-03-11Source Maps for client-side errors & columnsGravatar Jarred Sumner 1-1/+12
2022-03-08rename _global -> bunGravatar Jarred Sumner 1-26/+26
2022-03-07source maps optimizationsGravatar Jarred Sumner 1-10/+13
2022-03-061.7x faster sourcemap printingGravatar Jarred Sumner 1-24/+32
2022-03-06source maps work for app code in `bun dev`!Gravatar Jarred Sumner 1-50/+184
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-4/+7
2022-03-02[bun dev] Improve HMR performance by pooling websocket threadsGravatar Jarred Sumner 1-37/+59
Previously, bun would create a new thread for each websocket connection. Now, it re-uses them Eventually, this should use evented i/o but other changes need to be made to support that
2022-03-02Send `Date` header in `bun dev`Gravatar Jarred Sumner 1-0/+9
2022-03-01cleanup code that checks if it should send an HTTP bodyGravatar Jarred Sumner 1-6/+6
2022-02-27WASMGravatar Jarred Sumner 1-6/+6
2022-02-24[bun dev] Fix bug with not transpiling files at the rootGravatar Jarred Sumner 1-12/+34
2022-02-20[bun dev] Implement `/bun:info` endpointGravatar Jarred Sumner 1-0/+51
This returns metadata for bun
2022-02-20[bun dev] Implement open in editor for transpiled filesGravatar Jarred Sumner 1-40/+115
2022-02-18[bun dev] Errors with file names can be opened in editor nowGravatar Jarred Sumner 1-2/+189
2022-02-18more mimallocGravatar Jarred Sumner 1-7/+8
2022-02-11`std.os.`exit -> `Global.exit` so stderr is always flushedGravatar Jarred Sumner 1-3/+3
2022-02-10[bun dev] Use a Mimalloc Arena to attempt to resolve a crash when `bun dev` ↵Gravatar Jarred Sumner 1-10/+13
has been running for awhile
2022-02-10[bun dev] Implement `hash:` namespace for `file` loader to improve browser ↵Gravatar Jarred Sumner 1-3/+20
cache invalidation This appends a hash to URLs and import paths In `bun dev`, this means: `/foo.woff2` => `/hash:/foo.woff2` `bun dev` simply ignores this.
2022-02-04reminderGravatar Jarred Sumner 1-3/+1
2022-02-04[bun dev] Fix bug with serving static files on next.js apps introduced in ↵Gravatar Jarred Sumner 1-5/+7
af69b47c228783825e1bae9873dda878cf5bdebf
2022-02-03Move detectFastRefresh to later so HTTP request handler starts fasterGravatar Jarred Sumner 1-2/+1
2022-02-01[http] Fix assertion in faviconGravatar Jarred Sumner 1-1/+2
2022-01-30[bun dev] Support HTML files in either project root or `public` folder ↵Gravatar Jarred Sumner 1-28/+61
(`static`)
2022-01-29Embed a favicon when none existsGravatar Jarred Sumner 1-0/+30
2022-01-29cleanupGravatar Jarred Sumner 1-5/+32
2022-01-29Enable Fast Refresh when not bundlingGravatar Jarred Sumner 1-9/+34
2022-01-28Implement TOML parserGravatar Jarred Sumner 1-2/+2
No Date/DateTime/Time/Local Time yet
2022-01-27[bunfig] Implement config file formatGravatar Jarred Sumner 1-10/+3
2022-01-22Update http.zigGravatar Jarred Sumner 1-1/+1
2022-01-19`fs.*Sync()`, `bun wiptest`, and More ™ (#106)Gravatar Jarred Sumner 1-76/+126
* very very wip * almost ready to fix the errors * Update identity_context.zig * Update base.zig * [bun test] It runs successfully * Remove unnecessary call * [Bun.js] Improve JS <> Zig unicode string interop This fixes longstanding unicode bugs with `console.log` & `fetch`. I believe @evanwashere reported this first awhile ago * [Bun.js] Implement `Object.is()` binding and a way to set a timeout for script execution * Update PLCrashReport.zig * [Bun.js] Make `console.log` more closely match Node.js and Deno * [Bun.js] Implement formatting specifier for console.* * Implement `console.clear()` * bug fix * Support console.clear() * Buffer stderr * [bun test] Begin implementing Node.js `fs` * Update darwin_c.zig * Implement more of `fs` * `mkdir`, `mkdir` recursive, `mkdtemp` * `open`, `read` (and pread) * Move some things into more files * Implement readdir * `readFile`, `readLink`, and `realpath` * `writeFile`, `symlink`, `chown`, `rename`, `stat`, `unlink`, `truncate` * `lutimes` * Implement `SystemError` and begin wiring up the `fs` module * `"fs"` - Most of the arguments / validation * `fs` - Rest of the arguments / validations * Begin wiring up the `fs` module * Fix all the build errors * support printing typed arrays in console.log * It...works? * Support `require("fs")`, `import fs from 'fs';`, `import * as fs from 'fs'` * Fix a couple bugs * get rid of the crash reporter for now * Update fs.exports.js * [bun.js] slight improvement to startup time * [bun.js] Improve error message printing * [Bun.js] Add `Bun.gc()` to run the garbage collector manually and report heap size * [Bun.js] Add Bun.generateHeapSnapshot to return what JS types are using memory * [Bun.js] Add `Bun.shrink()` to tell JSC to shrink the VM size * Improve encoding reader * [bun.js] Improve callback & microtask performance * Update node_fs.zig * Implement `console.assert` * simple test * [Bun.js] Prepare for multiple globals/realms to support testing * Create callbacks-overhead.mjs * Update http.zig * [Bun.js] Implement `queueMicrotask` * Add test for queueMicrotask * :sleepy: * [Bun.js] Implement `process.versions`, `process.pid`, `process.ppid`, `process.nextTick`, `process.versions`, * Implement `process.env.toJSON()` * [Bun.js] Improve performance of `fs.existsSync` * :nail_care: * [Bun.js] Implement `process.chdir(str)` and `process.cwd()`, support up to 4 args in `process.nextTick` * Make creating Zig::Process lazy * Split processi nto separte file * [Bun.js] Node.js Streams - Part 1/? * [Bun.js] Node.js streams 2/? * WIP streams * fix crash * Reduce allocations in many places * swap * Make `bun` start 2ms faster * Always use an apiLock() * libBacktrace doesn't really work yet * Fix crash in the upgrade checker * Clean up code for importing the runtime when not bundling * :camera: * Update linker.zig * 68! * backtrace * no, really backtrace * Fix * Linux fixes * Fixes on Linux * Update mimalloc * [bun test] Automatically scan for {.test,_test,.spec,_spec}.{jsx,tsx,js,cts,mts,ts,cjs}
2022-01-05Update http.zigGravatar Jarred Sumner 1-1/+1
2022-01-04[bun dev] Print error in status line textGravatar Jarred Sumner 1-3/+13
2022-01-02[bun dev] Upgrade-Insecure-Requests does not work for detecting HTTPSGravatar Jarred Sumner 1-5/+9
2022-01-02copy: replace Bun with bun (#99)Gravatar luke miles 1-8/+8
Most CLI tools have the style convention of referring to themselves in lowercase. It is, after all, the name that users type in when using the tool. This PR maintains that convention in bun. "Drop the uppercase B, it's cleaner"
2022-01-02Update http.zigGravatar Jarred Sumner 1-5/+7
2022-01-02[bun dev] Detect HTTPS via `Upgrade-Insecure-Requests`Gravatar Jarred Sumner 1-0/+5
2022-01-01[bun dev] Automatically set `origin` - improve support for proxying BunGravatar Jarred Sumner 1-21/+130
Previously, when running Bun behind a reverse proxy, you had to pass an explicit `--origin` arg and it could only run behind one proxy at a time. Now, Bun automatically determines the origin from the request if possible. It reads `Forwarded`, `X-Forwarded-Proto`, `X-Forwarded-Host`, `Origin`, and lastly `Host`. If none are available, it falls back to the `--origin` CLI arg. This change is important for usecases like Replit which shows multiple iframes in different origins.
2022-01-01Clear the fdGravatar Jarred SUmner 1-2/+12
2022-01-01Handle more edgecasesGravatar Jarred SUmner 1-47/+51
2022-01-01Detect fast refresh from .bun if possibleGravatar Jarred SUmner 1-3/+10
2022-01-01[bun dev] Improve filesystem watcher & HMR reliability (Linux + a little macOS)Gravatar Jarred SUmner 1-66/+195
Text editors like Replit save through atomic file updates. In an inotify filesystem watcher (Linux), that appears to be a delete followed by moving the file to the directory. Now when known files are moved into a directory, the watcher sends the file change notification to the browser(s). From there, the browser looks at it's files to determine whether or not Additionally, if an existing HMR connection does not know about a file ID passed to it, it asks the browser to reply with the file path and then starts watching that file. This improves HMR reliabiality if Bun had been restarted but the page hadn't been restarted.
2021-12-31Attempt to fix watcher issue with repl.itGravatar Jarred Sumner 1-2/+9
2021-12-31little testbun-v0.0.64Gravatar Jarred Sumner 1-1/+1
2021-12-31[devserver] Log more errors when a websocket connection failsGravatar Jarred Sumner 1-2/+9
2021-12-31Update http.zigGravatar Jarred Sumner 1-2/+2