aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/node-http.test.ts (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 1-593/+0
2023-03-03fix(node:http): match Node headers casing (lowercase only) (#2288)Gravatar Derrick Farris 1-0/+15
* fix(node:http): match Node headers casing (lowercase only) * fix(JSFetchHeaders): `WTFMove` the ascii string
2023-03-03Improve types for `node:http` (#2284)Gravatar Colin McDonnell 1-2/+18
* Document node:http * Fix test * Fix default * Fix default
2023-03-03Fix http server req url (#2285)Gravatar zhiyuan 1-1/+2
* fix: http url add search query * fix: add tests
2023-03-01fix(node:http): match Node `http.request()` GET/HEAD w/ body (#2262)Gravatar Derrick Farris 1-0/+25
2023-03-01Add a test for https request in node:httpGravatar Jarred Sumner 1-0/+16
2023-03-01fix(node:http/https): fix passing `URL` objs to `http.request`(#2253) (#2258)Gravatar Derrick Farris 1-28/+47
* fix(node:http/https): fix passing `URL` objs to `http.request`(#2253) * fix(node:http): hoist debug env var * fix(node:http): make body `undefined` when falsy
2023-02-27use abort signal on http.ClientRequest (#2222)Gravatar Ciro Spaciari 1-0/+41
* use abort signal on http.ClientRequest * fix edge case and add test
2023-02-27add signal on http.Server.listen (#2223)Gravatar Ciro Spaciari 1-0/+26
* add signal on http.Server.listen * actual call close instead of just stopping the server
2023-02-12prettier + stop serverGravatar Jarred Sumner 1-119/+101
2023-02-12Return server on listen (#2057)Gravatar MichaƂ Warda 1-1/+8
2023-02-01feat: add `http.request` (#1959)Gravatar Derrick Farris 1-2/+375
* fix(node-test-helpers): make sure to call done with any Errors thrown from wrapped fn * feat(node:http): add http.request, patch some missing apis for IncomingRequest, etc. * fix(node:http): FakeSocket -> Socket * refactor(node:http): only save type from IncomingMessage.options for now * fix(node:http): remove unnecessary check for UInt8Array * perf(node:http): globalThis.fetch -> var fetch = Bun.fetch * todo(node:http): add notes about handling abort/timeout w/ AbortSignal * refactor(node:http): standardize on FakeSocket and this.#fakeSocket * fix(node:http): fix headers getter * fix(node:http): remove _headers * perf(node:http): make http headers lazy * fix(node:http): return bool from keepSocketAlive
2023-01-31Re-run prettier after changesGravatar Jarred Sumner 1-2/+2
2022-11-16Make `node:http`.createServer work betterGravatar Jarred Sumner 1-0/+72