Download src/tests/dashManifest.ts from cursorpro/streamion: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/cursorpro/streamion/resolve/main/src/tests/dashManifest.ts
- Command line
-
hf download hf://spaces/cursorpro/streamion/src/tests/dashManifest.ts
-
curl -L -o dashManifest.ts https://huggingface.co/spaces/cursorpro/streamion/resolve/main/src/tests/dashManifest.ts
366 Bytes
| import { assertEquals } from "./deps.ts"; | |
| export async function dashManifest(baseUrl: string) { | |
| const resp = await fetch( | |
| `${baseUrl}/api/manifest/dash/id/jNQXAC9IVRw?local=true&unique_res=1`, | |
| { | |
| method: "GET", | |
| }, | |
| ); | |
| await resp.body?.cancel(); | |
| assertEquals(resp.status, 200, "response status code is not 200"); | |
| } | |