0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

HTTPメソッドについて[get,post,put,delete]

Posted at

HTTPメソッドとは

HTTPメソッドは、クライアントが行いたい処理をサーバに伝えるという役割です。

今回は4つ説明します。

GET

何かしらデータ(=リソース)を取得するときに利用するHTTPメソッドです。

POST

クライアントからサーバーにデータを送信するときに使います。

PUT

POSTと同様にクライアントからサーバーにデータを送信するときに使います。
ですが、既存データの「更新」で使われるのが多いです。

DELETE

既存データを削除したいときに使います。

まとめ

HTTPメソッドは、クライアントが行いたい処理をサーバに伝えるという役割
wed開発で使用頻度が高いのはGET,POST,PUT,DELETE

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?