post:用于發(fā)送資源;
get:用于請(qǐng)求資源;
PUT方法用請(qǐng)求有效載荷替換目標(biāo)資源的所有當(dāng)前表示。
DELETE方法刪除指定的資源。
CONNECT方法建立一個(gè)到由目標(biāo)資源標(biāo)識(shí)的服務(wù)器的隧道。
OPTIONS方法用于描述目標(biāo)資源的通信選項(xiàng)
HTTP 定義了一組請(qǐng)求方法, 以表明要對(duì)給定資源執(zhí)行的操作。指示針對(duì)給定資源要執(zhí)行的期望動(dòng)作. 雖然他們也可以是名詞, 但這些請(qǐng)求方法有時(shí)被稱為HTTP動(dòng)詞. 每一個(gè)請(qǐng)求方法都實(shí)現(xiàn)了不同的語(yǔ)義, 但一些共同的特征由一組共享:: 例如一個(gè)請(qǐng)求方法可以是 safe, idempotent, 或 cacheable.
<dl style="font-style: normal; margin: 0px 0px 20px; padding: 0px; border: 0px; box-sizing: border-box; max-width: 42rem; color: rgb(51, 51, 51); font-family: "Open Sans", arial, x-locale-body, sans-serif; font-size: medium; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">GET方法請(qǐng)求一個(gè)指定資源的表示形式. 使用GET的請(qǐng)求應(yīng)該只被用于獲取數(shù)據(jù).</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[HEAD](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">HEAD方法請(qǐng)求一個(gè)與GET請(qǐng)求的響應(yīng)相同的響應(yīng),但沒(méi)有響應(yīng)體.</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">POST方法用于將實(shí)體提交到指定的資源,通常導(dǎo)致?tīng)顟B(tài)或服務(wù)器上的副作用的更改. </dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">PUT方法用請(qǐng)求有效載荷替換目標(biāo)資源的所有當(dāng)前表示。</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[DELETE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">DELETE方法刪除指定的資源。</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[CONNECT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">CONNECT方法建立一個(gè)到由目標(biāo)資源標(biāo)識(shí)的服務(wù)器的隧道。</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[OPTIONS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">OPTIONS方法用于描述目標(biāo)資源的通信選項(xiàng)。</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[TRACE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">TRACE方法沿著到目標(biāo)資源的路徑執(zhí)行一個(gè)消息環(huán)回測(cè)試。</dd>
<dt style="font-style: normal; margin: 0px; padding: 0px; border: 0px; font-weight: 700;">[PATCH](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH)</dt>
<dd style="font-style: normal !important; margin: 0px 0px 24px; padding: 0px 0px 0px 20px; border: 0px;">PATCH方法用于對(duì)資源應(yīng)用部分修改。</dd>
</dl>