What are the difference between deno native server and std/http #350
-
Options are confusing for anyone doesn't know like me. What are the difference between deno native server and std/http? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The difference is that The native HTTP is unstable because it is new, we are not 100% convinces that we won't need to introduce breaking changes to it. It also currently lacks the ability to upgrade HTTP connections to Web sockets, which is a fairly important feature that Having said that |
Beta Was this translation helpful? Give feedback.
The difference is that
std/http
does all the processing of the HTTP request and response in JavaScript reading and writing directly to the network connection. While native HTTP processes the requests and responses in Rust using the hyper Rust crate.The native HTTP is unstable because it is new, we are not 100% convinces that we won't need to introduce breaking changes to it. It also currently lacks the ability to upgrade HTTP connections to Web sockets, which is a fairly important feature that
std/http
supports.Having said that
std
as a whole is unstable, and once native HTTP is in a place where it can be stabilised,std/http
will be deprecated.