Build the server
% crystal src/kemal-log.cr
[development] Kemal is ready to lead at http://0.0.0.0:3000
2023-07-03 01:20:01 UTC 200 GET / 240.96µs
[jdoe] Index
2023-07-03 01:20:07 UTC 200 GET /something 71.0µs
[jdoe] Doing something
2023-07-03 01:20:13 UTC 200 GET /something 364.0µs
[rdoe] Doing something
In other terminal
% curl -urdoe:word http://localhost:3000/something
Something done!%
% curl -ujdoe:pass http://localhost:3000/
Hello World!%
% curl -ujdoe:pass http://localhost:3000/something
Something done!%
% curl -urdoe:word http://localhost:3000/something
Something done!%