summaryrefslogtreecommitdiff
path: root/tests/js/hero.mjs (follow)
Commit message (Expand)AuthorAgeFilesLines
* src/hero.mjs: Retire codeEuAndreh2024-03-211-2430/+0
* tests/js/hero.mjs: Fix function orderingEuAndreh2024-03-181-67/+67
* src/hero.mjs: Add statusMessage() and statusResponse()EuAndreh2024-03-181-4/+42
* tests/js/hero.mjs: Add simple test for now()EuAndreh2024-03-171-0/+11
* src/hero.mjs: Use name of CWD as the default name of buildServer()EuAndreh2024-03-171-4/+15
* tests/js/hero.mjs: Accept a `headers` optional argument in socketRequest()EuAndreh2024-03-171-1/+2
* src/hero.mjs: Include "timestamp" in the logged data objectsEuAndreh2024-03-171-23/+40
* src/hero.mjs: Add makeUpgradeListener() (again, now rewritten)EuAndreh2024-03-161-0/+79
* src/hero.mjs: use empty object as default value for renderHeaders()EuAndreh2024-03-161-0/+1
* tests/js/hero.mjs: Add upgrade case to handleRequest() testEuAndreh2024-03-161-2/+35
* src/hero.mjs: Add writeHead() and its helper functionsEuAndreh2024-03-161-0/+76
* src/hero.mjs: Remove current makeUpgradeListener() and its helpersEuAndreh2024-03-161-172/+0
* src/hero.mjs: findHandler(): learn how to find upgrade routesEuAndreh2024-03-161-24/+63
* src/hero.mjs: Add interceptors.websocketHandshake()EuAndreh2024-03-161-2/+71
* src/hero.mjs: Add validateUpgrade(), computeHash() and their helper functionsEuAndreh2024-03-161-2/+169
* src/hero.mjs: Add "upgrade" and "socket" keys to `req`EuAndreh2024-03-161-9/+18
* src/hero.mjs: interceptors.contentType(): Generate body from status when missingEuAndreh2024-03-161-8/+31
* src/hero.mjs: Include stacktrace in 500 log entryEuAndreh2024-03-151-2/+4
* src/hero.mjs: Add makeUpgradeListener()EuAndreh2024-03-151-0/+60
* src/hero.mjs: Add handlerForConnection()EuAndreh2024-03-151-0/+40
* src/hero.mjs: Add support for "WEBSOCKET" type of routeEuAndreh2024-03-151-0/+5
* src/hero.mjs: Add buildHttpPayload()EuAndreh2024-03-151-0/+48
* src/hero.mjs: Add emitHeaders()EuAndreh2024-03-151-0/+24
* src/hero.mjs: Add comboForLabel()EuAndreh2024-03-151-0/+20
* src/hero.mjs: Add isValidLabel()EuAndreh2024-03-151-0/+19
* src/hero.mjs: Include "headers" and "ref" in request paramEuAndreh2024-03-141-7/+48
* src/hero.mjs: Add timing data to "in-response" log entryEuAndreh2024-03-081-2/+5
* src/web.mjs: Move logging and interceptors to the beginning of the fileEuAndreh2024-03-081-491/+491
* src/hero.mjs: Make sure globalInceptors are used even when we get a 404EuAndreh2024-03-081-1/+16
* src/hero.mjs: Add buildTable()EuAndreh2024-03-081-0/+13
* src/hero.mjs: server.listen() -> server.start(); server.close() -> server.stop()EuAndreh2024-03-071-4/+4
* src/hero.mjs: Add makeReopeningPipeReader()EuAndreh2024-03-071-25/+89
* src/hero.mjs: makePipeReader() now returns a function for closing itEuAndreh2024-03-071-4/+0
* tests/js/hero.mjs: Better names for pipes and sockets created by testsEuAndreh2024-03-071-21/+28
* src/hero.mjs: Add minimalistic "ping" action for doing smoke tests in productionEuAndreh2024-03-061-0/+19
* src/hero.mjs: Add simplified implementation of `makePipeReader()`EuAndreh2024-03-061-0/+21
* src/hero.mjs: Change server.listen() to receive no argumentsEuAndreh2024-03-061-4/+6
* src/hero.mjs: Add skeleton for makePipeReaderFn()EuAndreh2024-03-061-0/+20
* src/hero.mjs: Add makeLineEmitter()EuAndreh2024-03-061-0/+81
* src/hero.mjs: Add rmIf() and mkfifo()EuAndreh2024-03-061-5/+80
* tests/runner.mjs: Add missing await in t.test("", () => {})EuAndreh2024-03-061-105/+106
* src/hero.mjs: Add app name as first argument to buildServer()EuAndreh2024-03-011-3/+3
* src/hero.mjs: Add actionsFn() and lineHandlerFn()EuAndreh2024-03-011-1/+113
* src/hero.mjs: Promote log() to fancy logger objectEuAndreh2024-02-251-12/+139
* Explicit import from "node:process"; move log() to hero.mjsEuAndreh2024-02-251-4/+20
* Normalize how modules import and name each otherEuAndreh2024-02-241-12/+7
* src/hero.mjs: Add buildServer()EuAndreh2024-02-231-97/+249
* Big cleanupEuAndreh2024-02-231-0/+1050