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};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | REST.Client.pas REST.Client.hpp |
REST.Client | TCustomRESTRequest |
Description
Accept field of the request, which specifies the types of content that are acceptable for the response.
The default value is "application/json,text/plain;q=0.9,text/html;q=0.8", which requests that the response be in the first one of the following formats that is available:
- JSON
- Plain text
- HTML
For details about the syntax that you must use for the Accept field, see the specification.