Z User
phase7: MCP stdio smoke test (handshake + tools/list + get_roots 6:74) — 4/4 tests PASS
54a6341 Download node_modules/@hono/node-server/dist/serve-static.d.cts from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 802 Bytes
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40hono/node-server/dist/serve-static.d.cts
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/@hono/node-server/dist/serve-static.d.cts
-
curl -L -o serve-static.d.cts https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/%40hono/node-server/dist/serve-static.d.cts
802 Bytes
| import { Context, Env, MiddlewareHandler } from "hono"; | |
| //#region src/serve-static.d.ts | |
| type ServeStaticOptions<E extends Env = Env> = { | |
| /** | |
| * Root path. Relative path is based on current working directory from which the app was started. | |
| */ | |
| root?: string; | |
| path?: string; | |
| index?: string; | |
| precompressed?: boolean; /** Allow percent signs in the routed request path. Defaults to false. */ | |
| allowPercentInPath?: boolean; | |
| rewriteRequestPath?: (path: string, c: Context<E>) => string; | |
| onFound?: (path: string, c: Context<E>) => void | Promise<void>; | |
| onNotFound?: (path: string, c: Context<E>) => void | Promise<void>; | |
| }; | |
| declare const serveStatic: <E extends Env = any>(options?: ServeStaticOptions<E>) => MiddlewareHandler<E>; | |
| //#endregion | |
| export { ServeStaticOptions, serveStatic }; |