MCPcopy Create free account
hub / github.com/denoland/std / createStandardResponse

Function createStandardResponse

http/file_server.ts:104–107  ·  view source on GitHub ↗
(status: StatusCode, init?: ResponseInit)

Source from the content-addressed store, hash-verified

102}
103
104function createStandardResponse(status: StatusCode, init?: ResponseInit) {
105 const statusText = STATUS_TEXT[status];
106 return new Response(statusText, { status, statusText, ...init });
107}
108
109/**
110 * parse range header.

Callers 3

serveFileFunction · 0.85
serveDirFunction · 0.85
createServeDirResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected