agentscope-sift / node_modules /@modelcontextprotocol /sdk /dist /cjs /server /auth /middleware /allowedMethods.d.ts
Download node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts from Snapkitty/agentscope-sift: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts
- Command line
-
hf download hf://Snapkitty/agentscope-sift/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts
-
curl -L -o allowedMethods.d.ts https://huggingface.co/Snapkitty/agentscope-sift/resolve/main/node_modules/%40modelcontextprotocol/sdk/dist/cjs/server/auth/middleware/allowedMethods.d.ts
459 Bytes
| import { RequestHandler } from 'express'; | |
| /** | |
| * Middleware to handle unsupported HTTP methods with a 405 Method Not Allowed response. | |
| * | |
| * @param allowedMethods Array of allowed HTTP methods for this endpoint (e.g., ['GET', 'POST']) | |
| * @returns Express middleware that returns a 405 error if method not in allowed list | |
| */ | |
| export declare function allowedMethods(allowedMethods: string[]): RequestHandler; | |
| //# sourceMappingURL=allowedMethods.d.ts.map |