1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-08 15:19:40 -05:00
denoland-deno/ext
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
..
broadcast_channel docs: add category tag for built-in APIs (#15480) 2022-08-17 13:12:24 +10:00
console docs: add category tag for built-in APIs (#15480) 2022-08-17 13:12:24 +10:00
crypto docs: add category tag for built-in APIs (#15480) 2022-08-17 13:12:24 +10:00
fetch fix(ext/fetch): ignore user content-length header (#15555) 2022-08-23 12:43:04 +02:00
ffi BREAKING(ext/ffi): specialized buffer type (#15518) 2022-08-23 09:16:43 +05:30
flash feat(ext/flash): split upgradeHttp into two APIs (#15557) 2022-08-24 17:40:57 +05:30
http feat(ext/flash): split upgradeHttp into two APIs (#15557) 2022-08-24 17:40:57 +05:30
net docs: add permission tags to JSDocs (#15541) 2022-08-23 10:57:01 +10:00
node feat: binary npm commands (#15542) 2022-08-23 10:39:19 -04:00
tls chore: forward v1.24.3 release commit to main (#15462) 2022-08-11 16:47:03 -04:00
url docs: add category tag for built-in APIs (#15480) 2022-08-17 13:12:24 +10:00
web perf(runtime): optimize Deno.file open & stream (#15496) 2022-08-19 15:54:40 +05:30
webgpu chore: forward v1.24.3 release commit to main (#15462) 2022-08-11 16:47:03 -04:00
webidl chore: forward v1.24.3 release commit to main (#15462) 2022-08-11 16:47:03 -04:00
websocket docs: add permission tags to JSDocs (#15541) 2022-08-23 10:57:01 +10:00
webstorage docs: add category tag for built-in APIs (#15480) 2022-08-17 13:12:24 +10:00