Skip to content

What are the difference between deno native server and std/http #350

Answered by kitsonk
Srabutdotcom asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Srabutdotcom
Comment options

Answer selected by kitsonk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants