MCPcopy
hub / github.com/entropic-dev/entropic / redirect

Function redirect

services/common/boltzmann/response.js:66–70  ·  view source on GitHub ↗
(where, status = 301, extraHeaders = {})

Source from the content-addressed store, hash-verified

64}
65
66function redirect(where, status = 301, extraHeaders = {}) {
67 const headers = new Headers({ location: where, ...extraHeaders });
68 const r = new Response('', { status, headers });
69 return r;
70}
71
72function error(err, status = 500, extraHeaders = {}) {
73 const headers = new Headers({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected