leema needs an HTTP server library
Closed this issue · 2 comments
mdg commented
Leema is meant to be useful as a web language. Won't be very successful at that without an HTTP server library.
I tried integrating hyper already but it's designed to only do stuff in callbacks. It's really hard to read the request and send a response separately.
mdg commented
Probably easier to do this by doing the basic HTTP handling in Rust and then calling out to leema as a library to actually handle the request. Hyper can be built in to leema and launched similar to run. Something like leema http <file.lma>
mdg commented
doesn't do much yet, but the basics are done.
https://github.com/mdg/leema/blob/master/T/test_hyper.lma