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

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.

主站蜘蛛池模板: 寿宁县| 信丰县| 松潘县| 依安县| 新营市| 云浮市| 永川市| 神池县| 邯郸市| 巩留县| 伽师县| 宜川县| 平定县| 夏邑县| 临夏县| 老河口市| 扎兰屯市| 阿荣旗| 蛟河市| 乃东县| 岢岚县| 清水河县| 翁牛特旗| 依兰县| 龙口市| 阜宁县| 孝感市| 延津县| 齐河县| 嘉鱼县| 呼和浩特市| 和龙市| 新邵县| 榆树市| 雷山县| 垫江县| 五家渠市| 昭觉县| 比如县| 宁安市| 太原市|