Content-Type #
HTTPサーバーはデータの種類をContent-Typeヘッダーに入れてクライアントへ返します。
HTMLの場合 #
Content-Type: text/html; charset=UTF-8
JSONの場合 #
Content-Type: application/json; charset=UTF-8
参考リンク #
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types