Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-04-25 | fix(ext/http): truncate read bytes when streaming bodies (#14389) | Divy Srivastava | |
stream shutdown wasn't happening correctly (moved it to call op_http_shutdown) & extra zeroed bytes were being sent for when body length not a multiple of 64*1024 | |||
2022-04-22 | tests: unflake streaming compression tests (#14363) | Luca Casonato | |
2022-04-22 | Reland "perf(http): optimize ReadableStreams backed by a resource" (#14346) | Divy Srivastava | |
2022-04-21 | Reland "feat(ext/http): stream auto resp body compression" (#14345) | Divy Srivastava | |
2022-04-21 | Revert various PRs related to "ext/http" (#14339) | Bartek Iwańczuk | |
* Revert "feat(ext/http): stream auto resp body compression (#14325)" * Revert "core: introduce `resource.read_return` (#14331)" * Revert "perf(http): optimize `ReadableStream`s backed by a resource (#14284)" | |||
2022-04-20 | feat(ext/http): stream auto resp body compression (#14325) | Luca Casonato | |
This commit adds support for auto response body compression for streaming bodies. | |||
2022-04-20 | perf(http): optimize `ReadableStream`s backed by a resource (#14284) | Divy Srivastava | |
2022-03-22 | refactor: remove loops in cli/tests/unit/http_test.ts (#14075) | Bartek Iwańczuk | |
2022-03-20 | fix: actually don't inherit runtime permissions (#14024) | Luca Casonato | |
2022-03-19 | feat(ext/net): Deno.upgradeHttp handles unix connections (#13987) | Bartek Iwańczuk | |
2022-03-16 | feat(unstable): Add Deno.upgradeHttp API (#13618) | Bert Belder | |
This commit adds "Deno.upgradeHttp" API, which allows to "hijack" connection and switch protocols, to eg. implement WebSocket required for Node compat. Co-authored-by: crowlkats <crowlkats@toaxl.com> Co-authored-by: Ryan Dahl <ry@tinyclouds.org> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-03-07 | fix(ext/http): drop content-length header on compression (#13866) | Satya Rohith | |
2022-03-04 | feat(ext/http): auto-compression of fixed response bodies (#13769) | Kitson Kelly | |
Co-authored-by: Ryan Dahl <ry@tinyclouds.org> Co-authored-by: Satya Rohith <me@satyarohith.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> | |||
2022-02-16 | feat(test): improved op sanitizer errors + traces (#13676) | Luca Casonato | |
This commit improves the error messages for the `deno test` async op sanitizer. It does this in two ways: - it uses handwritten error messages for each op that could be leaking - it includes traces showing where each op was started This "async op tracing" functionality is a new feature in deno_core. It likely has a significant performance impact, which is why it is only enabled in tests. | |||
2022-02-16 | tests: deflake a bunch of net related tests (#13685) | Luca Casonato | |
2022-02-16 | tests: unflake httpServerIncompleteMessage (#13682) | Luca Casonato | |
2022-02-16 | feat(ext/http): add support for unix domain sockets (#13628) | ylxdzsw | |
2022-01-20 | chore: update copyright year (#13434) | Yoshiya Hinosawa | |
2022-01-02 | chore: update std submodule to efa94f2 (#13260) | Bartek Iwańczuk | |
2021-12-08 | fix(ext/timers): fix flakiness of `httpConnAutoCloseDelayedOnUpgrade` test ↵ | Yoshiya Hinosawa | |
(#13017) | |||
2021-11-23 | refactor: remove "unitTest" wrapper from cli/tests/unit (#12750) | Bartek Iwańczuk | |
2021-11-17 | test(ext/http): DELETE requests should always have body (#12798) | Bert Belder | |
Refs: #12741 Refs: #12746 | |||
2021-11-10 | refactor(ext/http): rewrite hyper integration and fix bug (#12732) | Bert Belder | |
Fixes: #12193 Fixes: #12251 Closes: #12714 | |||
2021-11-10 | fix: non ascii buffer response in http server (#12728) | Luca Casonato | |
2021-11-09 | Revert "refactor(ext/http): rewrite hyper integration and fix bug (#12332)" ↵ | Luca Casonato | |
(#12704) This reverts commit 5b1e537446454f6332de44adbeb6a15ff072c2fa. | |||
2021-11-08 | refactor(ext/http): rewrite hyper integration and fix bug (#12332) | Bert Belder | |
Fixes: #12193 | |||
2021-10-26 | fix(ext/http): allow multiple values in upgrade header for websocket (#12551) | Leo K | |
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com> | |||
2021-10-17 | fix(core): poll async ops eagerly (#12385) | Bert Belder | |
Currently all async ops are polled lazily, which means that op initialization code is postponed until control is yielded to the event loop. This has some weird consequences, e.g. ```js let listener = Deno.listen(...); let conn_promise = listener.accept(); listener.close(); // `BadResource` is thrown. A reasonable error would be `Interrupted`. let conn = await conn_promise; ``` JavaScript promises are expected to be eagerly evaluated. This patch makes ops actually do that. | |||
2021-10-11 | fix(http): don't expose body on GET/HEAD requests (#12260) | Luca Casonato | |
GET/HEAD requests can't have bodies according to `fetch` spec. This commit changes the HTTP server to hide request bodies for requests with GET or HEAD methods. | |||
2021-09-30 | feat(tls): custom in memory CA certificates (#12219) | Luca Casonato | |
This adds support for using in memory CA certificates for `Deno.startTLS`, `Deno.connectTLS` and `Deno.createHttpClient`. `certFile` is deprecated in `startTls` and `connectTls`, and removed from `Deno.createHttpClient`. | |||
2021-09-26 | fix(ext/http): include port number in h2 urls (#12181) | Ben Noordhuis | |
2021-09-25 | fix(http): panic when responding to a closed conn (#12216) | Aaron O'Mullan | |
Our oneshot receiver in `HyperService::call` would unwrap and panic, the `.await` on the oneshot receiver happens when the sender is dropped. The sender is dropped in `op_http_response` because: 1. We take `ResponseSenderResource` 2. Then get `ConnResource` and early exit on failure (conn already closed) 3. The taken sender then gets dropped in this early exit before any response is sent over the channel Fallbacking to returning a dummy response to hyper seems to be a fine quickfix | |||
2021-09-23 | test(cli): align unit test permissions with runtime test permissions (#12189) | Casper Beyer | |
2021-09-13 | fix: change assertion in httpServerIncompleteMessage test (#12052) | Bartek Iwańczuk | |
2021-09-08 | fix(ext/http): resource leak if request body is not consumed (#11955) | Bartek Iwańczuk | |
2021-09-05 | chore(std/http): server module name migration (#11890) | Craig Morten | |
2021-08-25 | chore(tests): improve unit tests using `deferred` (#11842) | David Sherret | |
2021-08-25 | fix(ext/http): websocket upgrade header check (#11830) | Dayan C. Galiazzi | |
2021-08-23 | fix(ext/http): resource leak on HttpConn.close() (#11805) | Bartek Iwańczuk | |
This commit adds tracking of resources that are related to "HttpConn" so they can be closed automatically when closing the connection. | |||
2021-08-16 | test(ext/http): add test for incomplete HTTP message and fix resource leak ↵ | Bartek Iwańczuk | |
(#11717) This commit adds a test case for "Http: connection closed before message completed" error as well as fixing an edge with resource leak when the error is raised. | |||
2021-08-13 | fix(ext/http): remove unwrap() when HTTP conn errors (#11674) | Bartek Iwańczuk | |
2021-08-11 | chore: move test files to testdata directory (#11601) | David Sherret | |
2021-08-09 | fix(websocket): allow any close code for server (#11614) | Leo K | |
2021-08-05 | refactor(cli/tests): remove unnecessary void return types (#11577) | Leo K | |
2021-07-28 | BREAKING(unstable): Rename Deno.WebSocketUpgrade::websocket to socket (#11542) | Nayeem Rahman | |
2021-07-24 | fix(http): support multiple options in connection header for websocket (#11505) | Pavel Hrách | |
Fixes #11494 | |||
2021-07-22 | fix(http/ws): case insensitive connection header (#11489) | Luca Casonato | |
The "connection" header should be case insensitive: https://datatracker.ietf.org/doc/html/rfc7230#section-6.1 | |||
2021-07-16 | fix(ext/http): correctly concat cookie headers (#11422) | Luca Casonato | |
Cookie headers should not be concatenated by commas, rather by semicolons. | |||
2021-07-08 | feat(runtime/http): server side websocket support (#10359) | Leo K | |
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Luca Casonato <hello@lcas.dev> | |||
2021-06-28 | fix(http): remove unwrap() in HTTP bindings (#11130) | Bartek Iwańczuk | |