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

Function looksLikeAssetRequest

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

Source from the content-addressed store, hash-verified

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