June 2022
Intermediate to advanced
420 pages
7h 10m
English
We will discuss Rocket requests and responses more in this chapter. The first section will discuss how Rocket handles incoming requests in the form of routes. We will learn about various parts of a route including HTTP methods, URIs, and paths. Then, we will create an application that uses various parts in routes. We will also talk about Rust traits and implement a Rust trait to create a request handler.
We are also going to discuss responses in a Rocket route handler and implement returning responses. After that, we will talk more about various built-in responder implementations and learn how to create an error handler to create a custom error when a route handler fails. Finally, we will implement a ...
Read now
Unlock full access