Member variable HttpResponse():ContentType Foundation
Contains the content type requested by the client.
Attribute: EXPORTED
Data type: Character
Description
The content type is a piece of information send by the client to tell the server what kind of data is requested by the client. By default, the <CXP/> infrastructure uses the content type "text/html". Some well-known content types are outlined in the table below. A full list of the content/mime types currently registered can be found here: http://www.iana.org/assignments/media-types
Most used content types
Content-Type | Description |
---|---|
image/jpeg | Jpeg image |
image/gif | GIF image |
text/plain | Plain text |
text/xml | XML/text data |
application/json | Json-encoded data stream |
Feedback
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.