aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-30Give a reply to the server if a route failsDaniel Schadt
Otherwise, the server will never get a reply and instead we'll just silently let the client timeout :-( This change introduces the function "uncatch", which makes an error the inner Cana computation explicit by returning the Either directly. With the way this is written currently, we could probably get away with using "catch" as well, along the lines of r geminiRequest `catch` (const $ writeResponse context ...)
2021-06-30CGI: Don't silently ignore exceptionsDaniel Schadt
2021-06-30implement basic CGI handlerDaniel Schadt
2021-06-30Get rid of utf8-stringDaniel Schadt
Turns out that Char8.unpack is enough for our purposes, so we don't need the utf8-string module.
2021-06-30Add package metadataDaniel Schadt
2021-06-30Implement parseResponseDaniel Schadt
2021-06-29fix handling of empty path segmentDaniel Schadt
Now, 'gemini://localhost' is treated the same as 'gemini://localhost/', and will display the index instead of raising a 51.
2021-06-29Add static file serverDaniel Schadt
Some simple code that allows Cana to serve files from a directory, and not just provide static responses.
2021-06-28Initial commitDaniel Schadt
This is a working version that can serve pages, yay! A lot of features still missing though, as well as proper package metadata.