diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-26 23:46:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 23:46:46 +0100 |
commit | 462ce14a78b4109143918878042b9f552083c82e (patch) | |
tree | 64c65d91557159efccb40117e340e7abbb08d75d /ext/http/00_serve.js | |
parent | d889f996577a6345d08c4ce71063be6d765fb5ec (diff) |
refactor: migrate extensions to virtual ops module (#22135)
First pass of migrating away from `Deno.core.ensureFastOps()`.
A few "tricky" ones have been left for a follow up.
Diffstat (limited to 'ext/http/00_serve.js')
-rw-r--r-- | ext/http/00_serve.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js index 30f85cdf3..c87480a11 100644 --- a/ext/http/00_serve.js +++ b/ext/http/00_serve.js @@ -6,7 +6,9 @@ const { InterruptedPrototype, internalRidSymbol, } = core; -const { +import { + op_http_cancel, + op_http_close, op_http_close_after_finish, op_http_get_request_headers, op_http_get_request_method_and_url, @@ -20,13 +22,11 @@ const { op_http_set_response_header, op_http_set_response_headers, op_http_set_response_trailers, + op_http_try_wait, op_http_upgrade_raw, op_http_upgrade_websocket_next, - op_http_try_wait, op_http_wait, - op_http_cancel, - op_http_close, -} = core.ensureFastOps(); +} from "ext:core/ops"; const { ArrayPrototypePush, ObjectHasOwn, |