MCPcopy
hub / github.com/hello-pangea/dnd / render

Function render

csp-server/server.tsx:34–40  ·  view source on GitHub ↗
(res: any, policy?: string, nonce?: string)

Source from the content-addressed store, hash-verified

32
33 // eslint-disable-next-line @typescript-eslint/no-explicit-any
34 function render(res: any, policy?: string, nonce?: string) {
35 if (policy) {
36 res.header('Content-Security-Policy', policy);
37 }
38 res.header('content-type', 'text/html');
39 res.end(renderHtml(policy, nonce));
40 }
41
42 server.get('/', (req, res) => {
43 render(res);

Calls 1

renderHtmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…