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

List of Important Methods

Before we discuss the HTTP methods, let's review three aspects of HTTP verbs:

  • Idempotency: Idempotency is an important concept in HTTP calls. In idempotent requests, you can change the server-side state (however, only once). That is, if you make multiple idempotent requests to the server, the net effect will be as if you have done one request.
  • Safety: Safe requests simply do not cause any side effects. They are only used to retrieve data. By side effects, we refer to any persistent changes in memory or database or any other external system. Registering a user is a side effect. Making a money transfer is a side effect. But viewing user information is not a side effect.
  • Cacheablity: Server or client or proxies can cache the responses for the requests.

 

In the preceding table, we can see that the GET method is the only safe method. And that's why, for example, search engines like Google only use GET methods to scan our side. Adhering to this standard makes sure nothing is changed during a search engine scan.

主站蜘蛛池模板: 玉龙| 同仁县| 宁安市| 沐川县| 夏河县| 天祝| 阿合奇县| 张家港市| 石家庄市| 玉山县| 屏山县| 靖远县| 中西区| 仁怀市| 汉川市| 穆棱市| 弥勒县| 通江县| 湘阴县| 东港市| 循化| 邢台市| 星座| 邢台市| 射洪县| 安阳市| 斗六市| 田林县| 出国| 辰溪县| 平安县| 土默特右旗| 隆尧县| 福建省| 道真| 佛山市| 天水市| 河曲县| 丹棱县| 洛川县| 泰州市|