- ASP.NET Core 2 Fundamentals
- Onur Gumus Mugilan T. S. Ragupathi
- 181字
- 2021-07-23 17:09:42
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.
推薦閱讀
- Learning NServiceBus(Second Edition)
- 程序設(shè)計與實踐(VB.NET)
- 單片機C語言程序設(shè)計實訓(xùn)100例:基于STC8051+Proteus仿真與實戰(zhàn)
- 程序員面試算法寶典
- 微服務(wù)設(shè)計原理與架構(gòu)
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- Python高效開發(fā)實戰(zhàn):Django、Tornado、Flask、Twisted(第3版)
- AutoCAD VBA參數(shù)化繪圖程序開發(fā)與實戰(zhàn)編碼
- SQL基礎(chǔ)教程(視頻教學(xué)版)
- Mastering Ext JS
- Android應(yīng)用開發(fā)深入學(xué)習(xí)實錄
- Xcode 6 Essentials
- 工業(yè)機器人離線編程
- Scratch從入門到精通
- PHP 8從入門到精通(視頻教學(xué)版)