how to add repsonse ehaders in javascript code example
Example: How do you read HEADERS in API response?
response.getHeader("Headername");
For popular headers like, ContentType, there is built in-ready
methods.
response.contentType();
response.getContentType();