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

Reliability

Before talking about reliability, we need to define which HTTP methods are safe and which are idempotent in the REST context. So, let's first define what safe and idempotent methods are:

  • An HTTP method is considered to be safe provided that, when requested, it does not modify or cause any side effects on the state of the resource
  • An HTTP method is considered to be idempotent if its response stays the same, regardless of the number of times it is requested, am idempotent request always gives back the same request, if repeated identically.

The following table lists which HTTP methods are safe and which are idempotent:

HTTP method Safe Idempotent
GET Yes Yes
POST No No
PUT No Yes
DELETE No Yes

 

Consumers should consider operation's safety and the idempotence features in order to be served reliably.

主站蜘蛛池模板: 石渠县| 富裕县| 凤山县| 千阳县| 济源市| 深州市| 新密市| 呈贡县| 武清区| 桃源县| 高清| 巴彦县| 桦南县| 义乌市| 吉安县| 邵阳市| 桂林市| 都江堰市| 威信县| 哈巴河县| 高台县| 东乡族自治县| 定陶县| 赞皇县| 涞水县| 曲松县| 和平县| 长岭县| 乐平市| 闻喜县| 那曲县| 临安市| 绵阳市| 抚松县| 老河口市| 甘洛县| 阿拉尔市| 普宁市| 新和县| 长治县| 响水县|