summaryrefslogtreecommitdiff
path: root/gemini/serve.go
AgeCommit message (Collapse)Author
2023-01-24Add support for titan:// to the gemini servertjpcc
Titan is a gemini add-on protocol so it really didn't make sense to build it out in a separate package. The most significant difference in titan for the purposes of implementation here is that requests can have bodies following the URL line. Since gus.Request is a struct, the only way to smuggle in the new field (a reader for the body) was to stash it in the context.
2023-01-23logging library up to top leveltjpcc
2023-01-17pull request, response, handlers out of the gemini packagetjpcc
2023-01-11much more extensive gus/gemini testingtjpcc
2023-01-11lots more documentation commentstjpcc
2023-01-11Improvements to Server lifecycle.tjpcc
- NewServer doesn't allocate any resources besides the server object itself. So eg context.WithCancel is delayed until s.Serve(). - Add a demonstration of graceful shutdown on signals to the cgi example.
2023-01-10Add a CGI contribtjpcc
2023-01-09Initial commit.tjpcc
some basics: - minimal README - some TODOs - server and request handler framework - contribs: file serving, request logging - server examples - CI setup