IETF
國際互聯(lián)網(wǎng)工程任務(wù)組(The Internet Engineering Task Force窍箍,簡稱 IETF)是一個公開性質(zhì)的大型民間國際團體酥宴,匯集了與互聯(lián)網(wǎng)架構(gòu)和互聯(lián)網(wǎng)順利運作相關(guān)的網(wǎng)絡(luò)設(shè)計者捶牢、運營者盒卸、投資人和研究人員,并歡迎所有對此行業(yè)感興趣的人士參與电媳。
https://www.ietf.org/topics/
RFC
RFC是Request For Comments的縮寫,意為“征求意見稿”蒙揣。它是互聯(lián)網(wǎng)工程任務(wù)組(IETF)的主要工作方式之一。
RFC2616 主要內(nèi)容為http協(xié)議眯杏,https://datatracker.ietf.org/doc/html/rfc2616
RFC3986關(guān)于URI的語法結(jié)構(gòu)說明更清晰:https://datatracker.ietf.org/doc/html/rfc3986#section-3
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
The following are two example URIs and their component parts:
foo://example.com:8042/over/there?name=ferret#nose
\_/ \______________/\_________/ \_________/ \__/
| | | | |
scheme authority path query fragment
| _____________________|__
/ \ / \
urn:example:animal:ferret:nose
POST/PUT/PATCH
PATCH更新部分資源夜焦,非冪等(不必冪等)。
PUT更新整個資源岂贩,冪等(多次請求結(jié)果一樣)。
POST非冪等萎津,可能會有額外作用,比如多次操作可能會新增多個資源或修改多次資源锉屈。
The HTTP PATCH request method applies partial modifications to a resource.
A PATCH
request is considered a set of instructions on how to modify a resource. Contrast this with PUT
; which is a complete representation of a resource.
A PATCH
is not necessarily idempotent, although it can be. Contrast this with PUT
; which is always idempotent. The word "idempotent" means that any number of repeated, identical requests will leave the resource in the same state.
The HTTP PUT request method creates a new resource or replaces a representation of the target resource with the request payload.
The difference between PUT
and POST
is that PUT
is idempotent: calling it once or several times successively has the same effect (that is no side effect), whereas successive identical POST
requests may have additional effects, akin to placing an order several times.
The HTTP POST method sends data to the server.