Web.HTTPApp.TWebRequest.ContentType

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property ContentType: string index 15 read GetStringVariable;

C++

__property System::UnicodeString ContentType = {read=GetStringVariable, index=15};

プロパティ

種類 可視性 ソース ユニット
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

説明

HTTP リクエストメッセージの Content-Type ヘッダーの値を示します。

ContentType プロパティを読み出すと,HTTP リクエストメッセージの Content のメディアタイプがわかります。ContentType は,Type/SubType 形式の文字列です。

ほとんどの HTTP リクエストはまったく Content を要求しません。Content の値を要求する Method を持ったリクエストは大部分,ContentType が text/html です。ただし,サーバー固有の Method 値を持った HTTP リクエストは,そのリクエストに適したどのようなメディアでも使用できます。

関連項目