MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / looksLikeAssetRequest

Function looksLikeAssetRequest

scripts/static-server.mjs:537–540  ·  view source on GitHub ↗
(urlPath)

Source from the content-addressed store, hash-verified

535}
536
537function looksLikeAssetRequest(urlPath) {
538 const last = urlPath.split("/").pop() ?? "";
539 return ASSET_LIKE_EXTENSIONS.has(extname(last).toLowerCase());
540}
541
542function matchesAnyPrefix(urlPath, prefixes) {
543 return prefixes.some((prefix) => matchesPathPrefix(urlPath, prefix));

Callers 2

redirectToMountedPathFunction · 0.85
handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected