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

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.

主站蜘蛛池模板: 达孜县| 衡山县| 安顺市| 黔江区| 萨迦县| 喀什市| 山东省| 金川县| 洛川县| 杭州市| 临夏市| 拉萨市| 巴青县| 元朗区| 元朗区| 乌拉特前旗| 灵宝市| 额尔古纳市| 古丈县| 周宁县| 乌兰浩特市| 井陉县| 定陶县| 绩溪县| 剑河县| 买车| 山阳县| 姚安县| 郎溪县| 宜川县| 新河县| 虹口区| 霸州市| 连城县| 克拉玛依市| 宜昌市| 九寨沟县| 交口县| 新巴尔虎右旗| 名山县| 安阳县|