HTTPメソッドリファレンス
すべてのHTTPメソッドのプロパティ、ユースケース、一般的なステータスコードを含む包括的なリファレンスガイド
すべての処理はブラウザ内で行われます。データはアップロードされません。
HTTPメソッドリファレンス
すべてのHTTPメソッドのプロパティ、ユースケース、一般的なステータスコードを含む包括的なリファレンスガイド
🔒すべての処理はブラウザ内で行われます。データはアップロードされません。
メソッド名、説明、ユースケースで検索...
クイック比較
| メソッド | 安全 | べき等 | キャッシュ可能 | リクエストボディ | レスポンスボディ |
|---|---|---|---|---|---|
GET | はい | はい | はい | 任意 | はい |
HEAD | はい | はい | はい | 任意 | No |
POST | No | No | No | はい | はい |
PUT | No | はい | No | はい | 任意 |
PATCH | No | No | No | はい | はい |
DELETE | No | はい | No | 任意 | 任意 |
OPTIONS | はい | はい | No | 任意 | はい |
TRACE | はい | はい | No | No | はい |
CONNECT | No | No | No | No | はい |
メソッド詳細
GET
Retrieve a representation of the specified resource. GET requests should only retrieve data.HEAD
Same as GET, but the server must not return a message body in the response.POST
Submit data to the specified resource, often causing a change in state or side effects on the server.PUT
Replace the entire target resource with the request payload.PATCH
Apply partial modifications to a resource.DELETE
Remove the specified resource from the server.OPTIONS
Describe the communication options for the target resource.TRACE
Perform a message loop-back test along the path to the target resource.CONNECT
Establish a tunnel to the server identified by the target resource.プロパティ定義
安全:安全なメソッドはサーバーの状態を変更しません。つまり、読み取り専用の操作です。安全なメソッドはリスクなくキャッシュやプリフェッチが可能です。
べき等:べき等なメソッドは、1回のリクエストのサーバーへの意図された効果が、同一のリクエストを複数回行った場合の効果と同じです。すべての安全なメソッドはべき等であり、PUTとDELETEもべき等です。
キャッシュ可能:キャッシュ可能なレスポンスは、後続のリクエストで再利用するためにキャッシュできるHTTPレスポンスです。GETとHEADのレスポンスは通常キャッシュ可能です。
