Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

http.response.content_type.media_type

http.response.content_type.media_typeString

レスポンスの Content-Type ヘッダーに基づく、追加パラメーターなしの小文字のコンテンツタイプ(サブタイプとサフィックスを含む)です。

フィールド値に charset などのパラメーターは含まれません。

値の例:

Content-Type ヘッダー フィールド値
text/html "text/html"
text/html; charset=utf-8 "text/html"
text/html+extra "text/html+extra"
text/html+extra; charset=utf-8 "text/html+extra"
text/HTML "text/html"
text/html; charset=utf-8; other=value "text/html"

: HTTP レスポンスフィールドが使えるかは、Cloudflare の機能とプランによって異なります。

カテゴリ:
  • レスポンス
  • ヘッダー

役に立ちましたか?