REST.Client.TCustomRESTRequest.Accept
Delphi
property Accept: string read GetAccept write SetAccept stored AcceptIsStored nodefault;
C++
__property System::UnicodeString Accept = {read=GetAccept, write=SetAccept, stored=AcceptIsStored};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | public | REST.Client.pas REST.Client.hpp |
REST.Client | TCustomRESTRequest |
説明
要求の Accept フィールドです。応答に使用できる内容の種類を指定します。
デフォルト値は "application/json,text/plain;q=0.9,text/html;q=0.8" で、次の形式のうち、使用可能な最初のものが応答の形式になることを求めています。
- JSON
- プレーン テキスト
- HTML
Accept フィールドに使用する必要がある構文の詳細については、仕様を参照してください。