Meghan Denny
8cd515f533
node:zlib: move deflate and gzip into native code ( #11770 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-06 18:49:19 -07:00
Ciro Spaciari
1011b44d78
fix(node:http) implement request.setTimeout and server.setTimeout ( #13772 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-06 17:52:38 -07:00
Meghan Denny
ed7741a662
node:https: provide proper Agent definition ( #11826 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-09-06 16:11:19 -07:00
Jarred Sumner
cd6785771e
run prettier and add back format action ( #13722 )
2024-09-03 21:32:52 -07:00
Ciro Spaciari
adb54f1849
fix(Server) handle requestIP after async call ( #13532 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-08-30 19:13:53 -07:00
Jarred Sumner
6faf657e32
Implement --max-http-header-size ( #13577 )
2024-08-29 00:38:47 -07:00
Ciro Spaciari
8ace981fbc
fix(node:http/node:https) emit continue ( #13434 )
2024-08-20 17:10:21 -07:00
Ciro Spaciari
24dbef7713
fix(server) fix flushing ( #13207 )
2024-08-09 18:20:04 -07:00
Ciro Spaciari
c552cb40d1
fix(server/tls/streams) fix onReadFile, streams, avoid shutdown on fatal errors, ensure ssl loop data and server ref count refactor ( #12979 )
2024-08-03 01:41:18 -07:00
Ciro Spaciari
1c648063fa
fix(tls/socket/fetch) shutdown fix + ref counted context ( #12925 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-07-30 22:41:54 -07:00
Jarred Sumner
e5ac4f94fa
Handle errors in node:http better ( #12641 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-07-26 19:53:36 -07:00
David Stevens
177f3a8622
Fixes #12182 - update default port when server is created ( #12201 )
2024-07-23 11:07:38 -07:00
Jarred Sumner
6ad3e6a5e3
Fixes #2532 ( #12633 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-07-17 20:53:12 -07:00
Jarred Sumner
cc42052039
node-fetch polyfill shouldn't break when web globals are overriden (#12634 )
2024-07-17 18:57:03 -07:00
Ciro Spaciari
422c17d76c
fix(http) mark completed true ( #11926 )
2024-06-17 15:09:20 -07:00
Ludvig Hozman
ee30e8660c
feat(https/fetch): Support custom ca/cert/key in fetch ( #11322 )
...
Co-authored-by: Liz3 (Yann HN) <accs@liz3.net >
2024-06-11 10:36:32 -03:00
Jarred Sumner
323011980c
Add fuzzer-like test of methods ( #11436 )
...
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Zack Radisic <zack@theradisic.com >
2024-05-30 15:12:29 -07:00
Georgijs
370db08891
Replace Streams.Readable with a JS implementation ( #11332 )
...
Co-authored-by: Georgijs Vilums <=>
Co-authored-by: gvilums <gvilums@users.noreply.github.com >
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-28 18:49:59 -07:00
Jonny Burger
15603ab596
Lift http.createServer maxRequestBodySize ( #11426 )
2024-05-28 15:13:46 -07:00
Jarred Sumner
e1eb4a4753
Improve unhandled error reporting in bun:test ( #11386 )
2024-05-27 01:55:33 -07:00
Jarred Sumner
fdbccef110
Speed up a couple tests ( #11369 )
2024-05-26 04:09:28 -07:00
Jarred Sumner
12bb5d03a2
Always propagate error in EventEmitter ( #11210 )
...
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2024-05-22 16:39:42 -07:00
Meghan Denny
d35ea63e6d
node:http: convert Agent from class to function ( #11130 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-16 23:33:34 -07:00
Meghan Denny
ac6eaac403
test: use resource disposal to ensure servers shutdown even if tests fail ( #11106 )
2024-05-16 17:26:13 -07:00
Ashcon Partovi
998c4ca0a7
Change node-http test so it doesn't emit annotation
2024-05-13 14:37:42 -07:00
Meghan Denny
8528e9c670
make node:fs.ReadableStream and node:stream.NativeReadable constructor functions ( #10943 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-09 17:18:43 -07:00
Meghan Denny
93c0a37ec2
brotli: make sure stream encode on large inputs works as expected ( #10936 )
...
Co-authored-by: nektro <nektro@users.noreply.github.com >
2024-05-08 18:28:06 -07:00
Meghan Denny
4970ffc3a4
node:http: add agent getter to ClientRequest ( #10878 )
2024-05-06 23:05:43 -07:00
Meghan Denny
1da810adc1
node:zlib: Brotli ( #10722 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-05-06 22:00:04 -07:00
Ciro Spaciari
79c7abe595
fix(server) handle ignored body and node:http destroy ( #10268 )
2024-05-01 16:18:35 -07:00
Meghan Denny
a78db0b8ae
test: node:http: don't hardcode this value ( #10671 )
2024-04-29 19:18:42 -07:00
Meghan Denny
adc631c9ef
fix node:http events regression and add another test ( #10566 )
2024-04-27 00:53:51 -07:00
Meghan Denny
8280defc30
node:http: preserve this value for onListen callback ( #10533 )
2024-04-26 18:42:29 -07:00
Meghan Denny
a64554bba6
node:http.request should emit events in the right order ( #10447 )
...
* node:http.request should emit events in the right order
* Apply formatting changes
* remove runOnNextTick alias
* make private event a symbol
* clean test
* fix regressions and add more tests
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred-Sumner <Jarred-Sumner@users.noreply.github.com >
2024-04-25 00:07:54 -07:00
Ciro Spaciari
4627af5893
fix(stream) fix http body-stream sending duplicate data ( #10221 )
...
* some fixes
* cleanup
* more complete test
* fix test + use same server
* opsie
* incremental steps
2024-04-12 19:58:13 -07:00
Meghan Denny
8fc08752e5
node:http: emit 'socket' event after calling http.request() ( #9270 )
...
* node:http: emit 'socket' event after calling http.request()
* add reference links for why this is how it is
* add guards to not waste time
* add a regression test
* use test harness port number
2024-03-05 23:01:32 -08:00
Ashcon Partovi
c837903e4e
Fix new Request("/") not working with node-fetch ( #9246 )
...
* Fix `new Request("/")` not working with `node-fetch`
* Address review
* Address review 2
* Fix bad test
2024-03-05 16:51:52 -08:00
ErikOnBike
4f0a497660
Fix lost constructors in Node.js module classes ( #9245 )
2024-03-04 16:12:22 -08:00
Cameron Haley
b5cea9a20c
Avoid manually destroying stream when IncomingMessage stream is done reading ( #9219 )
...
* Avoid manually destroying stream when IncomingMessage stream is done reading
* Add test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-03 16:29:13 -08:00
Jarred Sumner
1f0c1c81e9
Fix test
2024-02-04 00:42:40 -08:00
Jarred Sumner
1009b07807
Implement server.unref() and server.ref() ( #8675 )
...
* Implement server.ref() and server.unref()
* Update dns_resolver.zig
* Update server.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-02-03 23:57:34 -08:00
Meghan Denny
3a7df3f6c7
windows: add more passing test ( #8615 )
2024-02-01 13:45:47 -08:00
Jarred Sumner
47e7e004b1
Remove @known-failing-on-windows for tests which are no longer failing on windows
2024-01-24 21:03:32 -08:00
dave caruso
072f2f15ea
ci: run windows tests and also run them concurrently ( #7758 )
2024-01-12 17:02:20 -08:00
asomethings
54d762531a
fix: properly transform http method to uppercase ( #7982 )
...
* fix: http method uppercase transformation using wrong length
* feat: add test case for method uppercase
2024-01-04 02:54:59 -08:00
Jarred Sumner
70f344101b
Revert " feat(server): add server backlog parameter ( #7822 )" ( #7908 )
...
This reverts commit 411094b82d .
2023-12-28 23:44:27 -08:00
Hanaasagi
411094b82d
feat(server): add server backlog parameter ( #7822 )
...
* feat(server): add server backlog parameter
* add some tests
* Apply suggestions from code review
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
* fix test
* chore: fix style
---------
Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com >
2023-12-28 14:19:20 -03:00
Vlad Sirenko
7e511f55de
4415 es5 class http.Server ( #7705 )
2023-12-20 15:55:30 -08:00
Vlad Sirenko
19e80771ac
http convert es5 class ( #7485 )
...
* http convert es5 class
* remove additional object with private fields
* add comment to http method
2023-12-14 03:03:30 -08:00
Vlad Sirenko
f0e0c6d5df
fix: improve compatibility of http.ServerResponse ( #4431 )
2023-12-05 16:15:16 -08:00