The REST gateway uses the Content-Type header in your HTTP
requests to determine the data format of the data stored into the
data grid.
Data format
The REST gateway uses the Content-type
header in your HTTP requests to determine the data format of the data
that is stored in the data grid. If you insert content of type
application/xml,
when your application does a GET operation for the same cache key,
the response body and Content-type are in the equivalent format type.
In this example, the response body would be in
application/xml format.
You can store data of multiple content types in the same data grid.
Examples of some valid content types follow:
Table 1. Content
types for the content-type header in HTTP requestsContent type |
Use |
application/xml |
XML |
application/json |
JavaScript data |
application/octet-stream |
Serialized objects, general-purpose data |