Download core/src/node/api/HttpServer.ts from oldg591/jannn: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/oldg591/jannn/resolve/main/core/src/node/api/HttpServer.ts
- Command line
-
hf download hf://spaces/oldg591/jannn/core/src/node/api/HttpServer.ts
-
curl -L -o HttpServer.ts https://huggingface.co/spaces/oldg591/jannn/resolve/main/core/src/node/api/HttpServer.ts
474 Bytes
| export interface HttpServer { | |
| post: (route: string, handler: (req: any, res: any) => Promise<any>) => void | |
| get: (route: string, handler: (req: any, res: any) => Promise<any>) => void | |
| patch: (route: string, handler: (req: any, res: any) => Promise<any>) => void | |
| put: (route: string, handler: (req: any, res: any) => Promise<any>) => void | |
| delete: (route: string, handler: (req: any, res: any) => Promise<any>) => void | |
| register: (router: any, opts?: any) => void | |
| } | |