HTTPメソッドリファレンス

すべてのHTTPメソッドのプロパティ、ユースケース、一般的なステータスコードを含む包括的なリファレンスガイド

すべての処理はブラウザ内で行われます。データはアップロードされません。
Offline Ready

HTTPメソッドリファレンス

すべてのHTTPメソッドのプロパティ、ユースケース、一般的なステータスコードを含む包括的なリファレンスガイド

🔒すべての処理はブラウザ内で行われます。データはアップロードされません。
メソッド名、説明、ユースケースで検索...
クイック比較
メソッド安全べき等キャッシュ可能リクエストボディレスポンスボディ
GET
はいはいはい任意はい
HEAD
はいはいはい任意No
POST
NoNoNoはいはい
PUT
NoはいNoはい任意
PATCH
NoNoNoはいはい
DELETE
NoはいNo任意任意
OPTIONS
はいはいNo任意はい
TRACE
はいはいNoNoはい
CONNECT
NoNoNoNoはい
メソッド詳細
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のレスポンスは通常キャッシュ可能です。