1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 18:42:18 -05:00
denoland-deno/runtime/js
Luca Casonato f3bde1d53b
feat(ext/flash): split upgradeHttp into two APIs (#15557)
This commit splits `Deno.upgradeHttp` into two different APIs, because
the same API is currently overloaded with two different functions. Flash
requests upgrade immediately, with no need to return a `Response`
object. Instead you have to manually write the response to the socket.
Hyper requests only upgrade once a `Response` object has been sent.

These two behaviours are now split into `Deno.upgradeHttp` and
`Deno.upgradeHttpRaw`. The latter is flash only. The former only
supports hyper requests at the moment, but can be updated to support
flash in the future.

Additionally this removes `void | Promise<void>` as valid return types
for the handler function. If one wants to use `Deno.upgradeHttpRaw`,
they will have to type cast the handler signature - the signature is
meant for the 99.99%, and should not be complicated for the 0.01% that
use `Deno.upgradeHttpRaw()`.
2022-08-24 17:40:57 +05:30
..
01_build.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_errors.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_version.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
01_web_util.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
06_util.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
10_permissions.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
11_workers.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
12_io.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
13_buffer.js refactor: cleanup assert() & AssertionError definitions (#13859) 2022-03-19 13:57:37 +01:00
30_fs.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
30_os.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_diagnostics.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
40_files.js perf(runtime): optimize Deno.file open & stream (#15496) 2022-08-19 15:54:40 +05:30
40_fs_events.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_http.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_process.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_read_file.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_signals.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_spawn.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_testing.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_tty.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
40_write_file.js perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
41_prompt.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
90_deno_ns.js feat(ext/flash): split upgradeHttp into two APIs (#15557) 2022-08-24 17:40:57 +05:30
99_main.js feat: queueMicrotask() error handling (#15522) 2022-08-21 20:16:42 +02:00
README.md feat: add --location=<href> and globalThis.location (#7369) 2021-01-07 19:06:08 +01:00

Runtime JavaScript Code

This directory contains Deno runtime code written in plain JavaScript.

Each file is a plain, old script, not ES modules. The reason is that snapshotting ES modules is much harder, especially if one needs to manipulate global scope (like in case of Deno).

Each file is prefixed with a number, telling in which order scripts should be loaded into V8 isolate. This is temporary solution and we're striving not to require specific order (though it's not 100% obvious if that's feasible).

Deno Web APIs

This directory facilities Web APIs that are available in Deno.

Please note, that some implementations might not be completely aligned with specification.

Some Web APIs are using ops under the hood, eg. console, performance.

Implemented Web APIs