Z User
phase7: MCP stdio smoke test (handshake + tools/list + get_roots 6:74) — 4/4 tests PASS
54a6341 Download node_modules/hono/dist/router.js from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 885 Bytes
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/hono/dist/router.js
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/hono/dist/router.js
-
curl -L -o router.js https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/hono/dist/router.js
885 Bytes
| //#region src/router.ts | |
| /** | |
| * @module | |
| * This module provides types definitions and variables for the routers. | |
| */ | |
| /** | |
| * Constant representing all HTTP methods in uppercase. | |
| */ | |
| const METHOD_NAME_ALL = "ALL"; | |
| /** | |
| * Constant representing all HTTP methods in lowercase. | |
| */ | |
| const METHOD_NAME_ALL_LOWERCASE = "all"; | |
| /** | |
| * Array of supported HTTP methods. | |
| */ | |
| const METHODS = [ | |
| "get", | |
| "post", | |
| "put", | |
| "delete", | |
| "options", | |
| "patch", | |
| "query" | |
| ]; | |
| /** | |
| * Error message indicating that a route cannot be added because the matcher is already built. | |
| */ | |
| const MESSAGE_MATCHER_IS_ALREADY_BUILT = "Can not add a route since the matcher is already built."; | |
| /** | |
| * Error class representing an unsupported path error. | |
| */ | |
| var UnsupportedPathError = class extends Error {}; | |
| //#endregion | |
| export { MESSAGE_MATCHER_IS_ALREADY_BUILT, METHODS, METHOD_NAME_ALL, METHOD_NAME_ALL_LOWERCASE, UnsupportedPathError }; | |