aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/webcore/response.classes.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-24Report extra memory more (#4289)Gravatar Jarred Sumner 1-0/+1
* Report memory allocated in fetch * Memory size reporting to `Headers` * Fixup memory reporting allocator * Make these tests do more * cleanup some of this --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-28`MessageChannel` and `MessagePort` (#3860)Gravatar Dylan Conway 1-1/+1
* copy and format * copy * copy * cleanup * some tests * spellcheck * add types * don't lock getting contextId * array buffer test
2023-07-14structured clone (#3637)Gravatar Dylan Conway 1-0/+1
* copy `SerializedScriptValue` * format * make `SerializedScriptValue` compile * add `transfer` option * tests * serialize/deserialize blobs * tests for blobs * serialize/deserialize file blobs * more tests * small cleanup * format * small changes + serialize offset * slice helper * map and set test
2023-06-28Introduce `await Bun.file(path).exists()` (#3446)Gravatar Jarred Sumner 1-0/+1
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-09Add `name` propertyGravatar Jarred Sumner 1-2/+11
2023-04-06Add last modify field "mtime" for FileBlob (#1431) (#2491)Gravatar Zhongwei Yao 1-0/+4
* Add lastModified field for FileBlob (#1431) lastModified value is epoch timestamp in millisecond unit. * update according to review comment.
2023-03-17Fix various fetch/response/request tests (#2416)Gravatar Dylan Conway 1-1/+0
* fix most fetch tests, skip a few * fastGet, toValueGC, and invalid init * bigint unreachable, range error, log process as process * remove extra fetch_headers * remove js_type parameter, check isObject() * throw invalid mime type error, use enum literal * switch back to promise rejection * RangeError pascal case
2023-02-22feat(Request.signal) Initial support for signal in Request + fetch and ↵Gravatar Ciro Spaciari 1-0/+4
Request + Bun.serve (#2097) * add fetch abort signal * get aborted (still segfaults) * bidings.zig u0 error * still GC/memory error * fix start crash * fix AbortSignal fromJS * change fromJS to obj.as * addAbortSignalEventListenner * handle abort types, and add tests * fix tests * add custom reason test * merge 2 substring methods, use MAKE_STATIC_STRING_IMPL * fix create AbortError and TimeoutError, move globalThis and exception creation to main thread * fix tests and rebuild headers * no need to check with substring reason is already an exception * no need to check with substring reason is already an exception * fix dumb error inverting conditions for check reason * fix custom reason behavior * Request signal * remove package-lock.json * Remove JSC.Strong from Request signal * fix globals for fetch abort signal * more tests, clone signal crashs * fix AbortSignal.toJS * fix toJS bidings for AbortSignal * add streaming tests * fix abortion before connecting * fix tests and segfault * add fetch testing abort after finish * fix signal handler cleanup * support signal event Bun.serve * pull tests (failing) * remove unsupported test * formating * fix server Request.signal, fix cleanNativeBindings * add direct tests * more pull tests * fix stream tests * fix fetch, pending onAborted fix in HTTPServerWritable --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-0/+3
* Backport std::forward change * Implement `FormData` * Fix io_darwin headers issue * Implement `Blob` support in FormData * Add test for file upload * Fix bug with Blob not reading Content-Type * Finish implementing FormData * Add FormData to types --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-02-06Mark some things as not configurableGravatar Jarred Sumner 1-0/+3
2022-10-08Fix fetch response redirected (#1303)Gravatar zhiyuan 1-1/+3
* fix: sync codegen * fix: generate class script * fix: sync codegen * fix: add response redirected property
2022-09-28Fix several bugs with Request body streaming + store small response bodies ↵Gravatar Jarred Sumner 1-0/+2
without an extra memory allocation
2022-09-26[Web Streams] Add `body` to `Response` and `Request` (#1255)Gravatar Jarred Sumner 1-0/+2
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-09-22Faster `Blob` + begin to implement `FileSink`Gravatar Jarred Sumner 1-0/+28
2022-08-18Fix missing `prototype` property on generated classesGravatar Jarred Sumner 1-8/+0
2022-08-17Move around some thingsGravatar Jarred Sumner 1-0/+115