Tool Hub

HTTP 方法

GET/POST/PUT/PATCH/DELETE 比較表

GET
POST
PUT
PATCH
DELETE
HEAD
OPTIONS

GET

Retrieve a resource. No side effects. Default browser navigation.

Safe:
Idempotent:
Cacheable:
Body:
MethodSafeIdempotentCacheableBody

另請參閱: HTTP Status Code Lookup

使用方法

  1. Click any method badge (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) to select it。
  2. Read the detail card showing the use case and safe/idempotent/cacheable/body flags。
  3. Scan the comparison table to see all methods side by side at a glance。
  4. Use the legend at the top to understand what each flag means。

範例

  • Selecting DELETE shows: idempotent yes, safe no, cacheable no — repeating the call leaves the same server state after the resource is gone。
  • Comparing GET vs POST in the table immediately shows GET is safe and cacheable while POST is neither。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.