Skip to Content
Rust Web Programming
book

Rust Web Programming

by Maxwell Flitton
February 2021
Intermediate to advanced
394 pages
7h 20m
English
Packt Publishing
Content preview from Rust Web Programming

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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

You might also like

Rust Web Programming - Second Edition

Rust Web Programming - Second Edition

Maxwell Flitton
Rust Web Development

Rust Web Development

Bastian Gruber

Publisher Resources

ISBN: 9781800560819