I’m working on a http server and I can get it to run on a Linux Mint machine as a daemon. The routes appear to work and I even have a simple route that kills the process. The routes work but the way I am doing the reply to the client tells me the server is sending an empty response and I think I misunderstand the doc section on creating a http reply. I’m not sending a header, and I’m pretty sure that’s the problem but there’s no html involved and I was wondering how I would reply a simple string.
The examples in the docs always assume html is involved. What would a reply clause look like if I just want to return a string?
Using that you can reply to just about anything. There are high level commands for replying files, directory indexes, HTML, JSON and various status messages (404, etc.)