MCPcopy Index your code
hub / github.com/serverless/serverless / getExtFromMime

Function getExtFromMime

packages/sf-core/src/utils/https/index.js:407–410  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

405 * @returns
406 */
407const getExtFromMime = (res) => {
408 const header = res.headers.get('content-type')
409 return header ? header.split('/')[1] : null
410}
411
412/**
413 * Function to determine the filename from the response

Callers 1

getFilenameFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…