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