jukebox
All repositories: gitoria
617 B
\* Fixture for tls-on-plain-port.mjs — a plain (no TLS) hl:http1 server thatanswers every request "ok". The driver sends a TLS-ClientHello-shapedprefix at this port's raw socket and checks it is closed at once, thensends an ordinary HTTP request at the same port and checks it stillanswers. *\import { NativeHttpServer, Response } from 'hl:http1'import { env } from 'hl:proc'inherit NativeHttpServerNumber port = env('HL_TEST_PORT') != null ? toNumber(env('HL_TEST_PORT')) : 14980on request(req) {return new Response("ok", { status = 200; })}console.log("listening on " + port)listen()
Branches
Latest commits
- d13987dfjukebox: library scanner, ID3 reader, mpackdb database and JSON API, with fixtures and a gatemre