官术网_书友最值得收藏!

Technical requirements

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.

主站蜘蛛池模板: 濮阳县| 甘孜县| 屏东县| 岳阳县| 兴山县| 德安县| 武山县| 资兴市| 六安市| 孝义市| 金阳县| 宝清县| 甘洛县| 金平| 大埔县| 平陆县| 仁寿县| 新巴尔虎左旗| 温泉县| 荣昌县| 怀远县| 霞浦县| 德令哈市| 嵊州市| 灯塔市| 岢岚县| 安远县| 通州区| 新营市| 寿阳县| 剑川县| 南靖县| 玉屏| 闸北区| 高清| 广南县| 合肥市| 临邑县| 田阳县| 富民县| 永城市|