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

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.

主站蜘蛛池模板: 永昌县| 吉安市| 华安县| 古浪县| 凤阳县| 周口市| 蒲城县| 通辽市| 满洲里市| 霍邱县| 淮北市| 象山县| 徐水县| 和田县| 贺兰县| 波密县| 泸定县| 绵竹市| 同江市| 鄂托克旗| 华亭县| 云梦县| 南召县| 永清县| 米脂县| 长乐市| 出国| 沙河市| 平顶山市| 灌南县| 尖扎县| 鄂温| 罗甸县| 金湖县| 光山县| 临湘市| 嘉义县| 黄梅县| 佛山市| 大化| 扎鲁特旗|