- Building RESTful Web Services with Spring 5(Second Edition)
- Raja CSP Raman Ludovic Dewailly
- 247字
- 2021-06-30 19:13:29
HTTP methods
Based on HTTP 1.1 specifications, the following are method definitions:
- GET: This method gets the information mentioned in the URI. The GET method can be used for single or multiple items.
- POST: This method creates the item mentioned in the URI. Generally, the POST method will be used for item creation and more secured options. As the parameters are hidden in POST, it will be secure compared to the GET method.
- DELETE: This methods deletes the item in the requested URI.
- PUT: This method updates the item in the requested URI. According to the HTTP specifications, the server can create the item if the item is not available. However, this will be decided by the developer who designed the application.
- Advanced HTTP methods: Though we may not use advanced methods all the time, it will be good to know these methods, as they might be useful:
- HEAD: This method gets meta information about the resource, not the resource itself, as a response. It will be used for caching purposes.
- TRACE: This method is mostly used for debugging purposes where the contents of an HTTP request will be sent back to the requester.
- CONNECT: This is used to open a tunnel and can be used for proxy purposes.
- OPTIONS: This method is used to describe communication options for the target resource.
The following are HTTP method recommendations for our CRUD operations:

In the rest of the chapter, we will show how to build CRUD operations.
推薦閱讀
- 網(wǎng)絡(luò)協(xié)議工程
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- 從區(qū)塊鏈到Web3:構(gòu)建未來互聯(lián)網(wǎng)生態(tài)
- Truffle Quick Start Guide
- 5G承載網(wǎng)網(wǎng)絡(luò)規(guī)劃與組網(wǎng)設(shè)計(jì)
- 物聯(lián)網(wǎng)信息安全
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- 中國互聯(lián)網(wǎng)發(fā)展報(bào)告2018
- Bonita Open Solution 5.x Essentials
- 通信十年:擁抱互聯(lián)網(wǎng)
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- Getting Started with tmux
- 從物聯(lián)到萬聯(lián):Node.js與樹莓派萬維物聯(lián)網(wǎng)構(gòu)建實(shí)戰(zhàn)
- 網(wǎng)絡(luò)互聯(lián)技術(shù)(理論篇)
- 物聯(lián)網(wǎng)導(dǎo)論