js fetch response headers 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();
response.getHeader("Headername");
For popular headers like, ContentType, there is built in-ready
methods.
response.contentType();
response.getContentType();