summaryrefslogtreecommitdiff
path: root/ext/http/01_http.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-03-19 14:21:49 +0100
committerGitHub <noreply@github.com>2022-03-19 14:21:49 +0100
commit52a6e9ef4ad63c06504867d60a44840c62b7a0cd (patch)
tree6e6573e9e226daeef84eaf41bfbef5d2f7b05d9a /ext/http/01_http.js
parente55dee7fd894f705a0268a4734b00197021f0617 (diff)
feat(ext/net): Deno.upgradeHttp handles unix connections (#13987)
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r--ext/http/01_http.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index ad39ce257..2c1543814 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -30,7 +30,7 @@
_idleTimeoutTimeout,
_serverHandleIdleTimeout,
} = window.__bootstrap.webSocket;
- const { TcpConn } = window.__bootstrap.net;
+ const { TcpConn, UnixConn } = window.__bootstrap.net;
const { TlsConn } = window.__bootstrap.tls;
const { Deferred } = window.__bootstrap.streams;
const {
@@ -311,6 +311,8 @@
conn = new TcpConn(res.connRid, remoteAddr, localAddr);
} else if (res.connType === "tls") {
conn = new TlsConn(res.connRid, remoteAddr, localAddr);
+ } else if (res.connType === "unix") {
+ conn = new UnixConn(res.connRid, remoteAddr, localAddr);
} else {
throw new Error("unreachable");
}