Chapter 3: Handling HTTP Requests
Solving problems with well-structured code can only get us so far. To enable our solution to reach multiple people quickly without the need to install Rust, we are going to need to serve our to-do application on a web server. Fortunately, Rust has a range of web frameworks. In this chapter, we will build a basic web app that handles views using the Actix Web framework in a scalable way.
In order to achieve this, we will be building server views in a modular fashion. We will also cover the basics of asynchronous programming in order to briefly look under the hood of how the Actix Web framework works.
In this chapter, we will cover the following topics:
- Building a basic server using the Actix Web framework
- Exploring and understanding closures in order to refine the building of that server
- Exploring and understanding the basics of threads in Rust using asynchronous programming
- Exploring and understanding the basics of futures...