Spaces:
Sleeping
Sleeping
Download src/utils/request-client-id.ts from Bin29/ManimCat-show: direct link, hf CLI and curl.
- Browser
- Download file 215 Bytes
-
https://huggingface.co/spaces/Bin29/ManimCat-show/resolve/main/src/utils/request-client-id.ts
- Command line
-
hf download hf://spaces/Bin29/ManimCat-show/src/utils/request-client-id.ts
-
curl -L -o request-client-id.ts https://huggingface.co/spaces/Bin29/ManimCat-show/resolve/main/src/utils/request-client-id.ts
215 Bytes
| import type express from 'express' | |
| export function getRequestClientId(req: express.Request): string | undefined { | |
| const clientId = String(req.headers['x-client-id'] || '').trim() | |
| return clientId || undefined | |
| } | |