gitoriaLog in with ident

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit76edaa6276edaa62calendar: Hybriel master ff51cf46 (re-vendor round, static workaround removed)mre76edaa62/plugins/http1/tests/tls_on_plain_port.hl

617 B

  1. \* Fixture for tls-on-plain-port.mjs — a plain (no TLS) hl:http1 server that
  2. answers every request "ok". The driver sends a TLS-ClientHello-shaped
  3. prefix at this port's raw socket and checks it is closed at once, then
  4. sends an ordinary HTTP request at the same port and checks it still
  5. answers. *\
  6. import { NativeHttpServer, Response } from 'hl:http1'
  7. import { env } from 'hl:proc'
  8. inherit NativeHttpServer
  9. Number port = env('HL_TEST_PORT') != null ? toNumber(env('HL_TEST_PORT')) : 14980
  10. on request(req) {
  11. return new Response("ok", { status = 200; })
  12. }
  13. console.log("listening on " + port)
  14. listen()

Branches

Latest commits

  • 76edaa62calendar: Hybriel master ff51cf46 (re-vendor round, static workaround removed)mre
  • 90a3fc2cdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • 6722b72ddeploy.sh: never send .git or .gitignore to Byrodinmre
  • be099807State of 2026-09-27, before the move to gitoriamre