Web.HTTPApp.TWebResponse.ContentType
Delphi
property ContentType: string index 8 read GetStringVariable write SetStringVariable;
C++
__property System::UnicodeString ContentType = {read=GetStringVariable, write=SetStringVariable, index=8};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | TWebResponse |
Description
Indicates the media type of the Content of the HTTP response message.
Set ContentType to indicate the media type of the Content of the HTTP response message. The value of ContentType must specify a valid MIME content type. The ContentType string has the form Type/SubType.
For example, if the HTTP response message sends a string of HTML commands to the web client in response to a GET request, the ContentType is text/html.
Note: If the HTTP request message includes an Accept header, ContentType should be one of the content types listed in the Accept property of TWebRequest.