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

Function createBaseHeaders

http/file_server.ts:434–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432}
433
434function createBaseHeaders(): Headers {
435 return new Headers({
436 server: "deno",
437 // Set "accept-ranges" so that the client knows it can make range requests on future requests
438 [HEADER.AcceptRanges]: "bytes",
439 });
440}
441
442function dirViewerTemplate(dirname: string, entries: EntryInfo[]): string {
443 const splitDirname = dirname.split("/").filter((path) => Boolean(path));

Callers 2

serveFileFunction · 0.85
serveDirIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected