Open samuelgozi opened 1 year ago
Still nothing in Bun v1.0.7
Upgrading from a TCP connection -> TLS connection is supported as of Bun v0.6.13 (July of 2023). This is not supported on the HTTP server yet.
It is missing documentation though (cc @colinhacks @cirospaciari)
const tlsSocket = socket.upgradeTLS({
// .data on the newly created socket
data: myData,
tls: {
// tls options same as Bun.connect / Bun.listen
},
socket: {
// socket options same as Bun.connect / Bun.listen
}
});
Thanks!
Thanks, thats awesome! Can hopefully migrate my project now (didn't test it yet). The HTTP parse would help but is not a requirement, it can be implemented in JS/TS.
What is the problem this feature would solve?
I would like to implement an HTTPS proxy server using bun, however there are some primitives missing.
What is the feature you are proposing to solve the problem?
What alternatives have you considered?
I have already implemented this in Node.js, then tried Bun and Deno. Bun and Deno lack the same primitives.
I am currently considering implementing this in a lower level language such as Rust and then provide bindings to node or access through FFI.