To easily understand this chapter, you should have beginner knowledge of HTTP. The required concepts are as follows:
- Uniform Resource Identifiers (URIs)
- Methods (such as GET)
- Headers
- Body
- Content type (such as plain/text)
- Status code (such as Not Found=404)
Before starting the projects in this chapter, a generic HTTP client should be installed on your computer. The tool used in the examples is the command-line tool curl, freely available for many operating systems. The official download page is https://curl.haxx.se/download.html. In particular, the page for Microsoft Windows is https://curl.haxx.se/windows/.
Alternatively, you can use one of the several good, free web-browser utilities, such as Advanced REST Client for Chrome, or RESTED and RESTer for Firefox.
The complete source code for this chapter is in the Chapter03 folder of the repository, located at https://github.com/PacktPublishing/Creative-Projects-for-Rust-Programmers.