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

Function looksLikeAssetRequest

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

Source from the content-addressed store, hash-verified

411}
412
413function looksLikeAssetRequest(urlPath) {
414 const last = urlPath.split("/").pop() ?? "";
415 return ASSET_LIKE_EXTENSIONS.has(extname(last).toLowerCase());
416}
417
418function matchesAnyPrefix(urlPath, prefixes) {
419 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