* Sets the response `headers` including the platform headers to `res`.
(
res: http.ServerResponse,
requestId: string,
headers: http.OutgoingHttpHeaders = {}
)
| 1460 | * Sets the response `headers` including the platform headers to `res`. |
| 1461 | */ |
| 1462 | setResponseHeaders( |
| 1463 | res: http.ServerResponse, |
| 1464 | requestId: string, |
| 1465 | headers: http.OutgoingHttpHeaders = {} |
| 1466 | ): void { |
| 1467 | const allHeaders = { |
| 1468 | 'cache-control': 'public, max-age=0, must-revalidate', |
| 1469 | ...headers, |
| 1470 | server: 'Vercel', |
| 1471 | 'x-vercel-id': requestId, |
| 1472 | 'x-vercel-cache': 'MISS', |
| 1473 | }; |
| 1474 | for (const [name, value] of Object.entries(allHeaders)) { |
| 1475 | res.setHeader(name, value); |
| 1476 | } |
| 1477 | } |
| 1478 | |
| 1479 | private prepareTransforms( |
| 1480 | req: http.IncomingMessage, |
no outgoing calls
no test coverage detected