1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/ext/http
Divy Srivastava b482a50299
feat(ext/http): abort event when request is cancelled (#26781)
```js
Deno.serve(async (req) => {
  const { promise, resolve } = Promise.withResolvers<void>();

  req.signal.addEventListener("abort", () => {
    resolve();
  });

  await promise;

  return new Response("Ok");
});
```
2024-11-08 18:46:11 +05:30
..
benches chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
00_serve.ts feat(ext/http): abort event when request is cancelled (#26781) 2024-11-08 18:46:11 +05:30
01_http.js refactor(ext): align error messages (#25496) 2024-09-18 18:19:45 -07:00
02_websocket.ts fix(ext/websocket): change default idleTimeout to 30s (#23985) 2024-05-26 10:46:05 +05:30
Cargo.toml chore: forward v2.0.5 release commit to main (#26755) 2024-11-06 02:27:14 +01:00
compressible.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
fly_accept_encoding.rs perf(http): avoid clone getting request method and url (#26250) 2024-10-14 23:25:47 -04:00
http_next.rs feat(ext/http): abort event when request is cancelled (#26781) 2024-11-08 18:46:11 +05:30
lib.rs feat(ext/http): abort event when request is cancelled (#26781) 2024-11-08 18:46:11 +05:30
network_buffered_stream.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
reader_stream.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md chore: add README to ext/http/ (#11958) 2021-09-08 20:48:28 +02:00
request_body.rs refactor(ext/http): use concrete error types (#26377) 2024-10-18 15:57:12 -07:00
request_properties.rs perf(http): avoid clone getting request method and url (#26250) 2024-10-14 23:25:47 -04:00
response_body.rs perf(ext/http): Reduce size of ResponseBytesInner (#24840) 2024-08-02 00:30:26 +00:00
service.rs feat(ext/http): abort event when request is cancelled (#26781) 2024-11-08 18:46:11 +05:30
websocket_upgrade.rs refactor(ext/http): use concrete error types (#26377) 2024-10-18 15:57:12 -07:00

deno_http

This crate implements server-side HTTP based on primitives from the Fetch API.