October 2019
Intermediate to advanced
444 pages
10h 37m
English
actix-web (https://actix.rs) is a versatile web framework and it—among other things—efficiently serves static files as well. In this recipe, we covered how to declare and register request handlers, as well as some ways to provide responses. In a typical web framework, there are several ways to achieve these tasks (declaring handlers, creating responses) and steps 1 to 3 show two ways to do this with actix-web:
Regardless of the way we associate a handler with a route, each of them is wrapped into a factory that creates new handler instances on demand, which is very visible when a compiler error points ...
Read now
Unlock full access