Over recent years, web requests have become an important part of many applications. Almost anything integrates with some kind of web service, even if it's only diagnostics and usage statistics. HTTP's versatility has proven to be a great asset in a more centralized computing world.
One of the libraries in this recipe (surf) is cutting edge and depends on an unstable (at the time of writing this) async/await feature of Rust. Depending on when you read this, the library or async/await in Rust may have changed—in that case, please open an issue on the accompanying GitHub repository so we can provide a working example for other readers.
Making these web requests has not always been straightforward in any language, especially with regard to sending and receiving data types, variables, and more. Since Rust does not come with web request modules...