Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const response: Response = {
body: {
content,
rawContent,
rawResponse
},
charset: null,
headers: resourceHeaders,
hops,
mediaType: null,
statusCode: cdpResponse.response.status,
url: resourceUrl
};
const { charset, mediaType } = getContentTypeData(element, resourceUrl, response.headers, response.body.rawContent);
response.mediaType = mediaType;
response.charset = charset;
return response;
}