API:REST.Client.TRESTRequest.Accept

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Accept: string read GetAccept write SetAccept stored AcceptIsStored;

C++

__property Accept;

Properties

Type Visibility Source Unit Parent
property published
REST.Client.pas
REST.Client.hpp
REST.Client TRESTRequest

Description

Accept field of the request, which specifies the types of content that are acceptable for the response.

REST.Client.TRESTRequest.Accept inherits from REST.Client.TCustomRESTRequest.Accept. All content below this line refers to REST.Client.TCustomRESTRequest.Accept.

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.

See Also