What is an idempotent operation?

前端 未结 15 923
情话喂你
情话喂你 2020-11-22 03:27

What is an idempotent operation?

15条回答
  •  鱼传尺愫
    2020-11-22 03:55

    In short, Idempotent operations means that the operation will not result in different results no matter how many times you operate the idempotent operations.

    For example, according to the definition of the spec of HTTP, GET, HEAD, PUT, and DELETE are idempotent operations; however POST and PATCH are not. That's why sometimes POST is replaced by PUT.

提交回复
热议问题