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

Function looksLikeAssetRequest

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

Source from the content-addressed store, hash-verified

474}
475
476function looksLikeAssetRequest(urlPath) {
477 const last = urlPath.split("/").pop() ?? "";
478 return ASSET_LIKE_EXTENSIONS.has(extname(last).toLowerCase());
479}
480
481function matchesAnyPrefix(urlPath, prefixes) {
482 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