-
Book Overview & Buying
-
Table Of Contents
Rust Web Programming - Third Edition
By :
In this chapter, we focused on building custom and basic HTTP protocols on top of TCP connections. We could have just listed all the different APIs for networks and shown how to call them. Instead, we focused on how to build protocols on top of the TCP connection. As we saw with the Actix WebSockets documentation code, we can now understand what is going on under the hood of the API code. It must be stressed that most connection protocols have been defined in web-established third-party dependencies, so while it is useful to know how protocols are built, most of the time, you should use the established dependency, as bugs have been smoothed out, and timeouts, connection attempts, and framing have also been built into these third-party dependencies. In the next chapter, we will build queuing mechanisms.