| > there's plenty of HTTP servers on CPAN. I'm not sure which one's are best. Same. I know about HTTP::Daemon, HTTP::Tiny and HTTP::Server::Simple If you have tried one of the 3 and can confirm it works with APPerl, it might save time? If not, first with HTTP::Daemon (since it shows how to bind to a given IP in https://gist.github.com/mikkun/6388508, unlike HTTP::Tiny) I will try to release something similar to redbean but based on perl and DBD::SQLite > When bundled into APPerl, the script can read the files embedded in APPerl from the /zip path. That much I knew, but I was afraid there might be extra things needed > MHFS's APPerl packaging config: https://github.com/G4Vi/MHFS/blob/master/apperl/apperl-proje... Thank you! Then I might go with MHFS at first (tweaking its index.pl), if only because it's been tested by you with APPerl :) |
I haven't tested any. Pure Perl servers should be the easiest to get working. The Cosmopolitan Libc doesn't support fcntl F_SETFL O_NONBLOCK on Windows yet, and so non-blocking / event loop servers may be a no-go for now.
> I will try to release something similar to redbean but based on perl and DBD::SQLite
I'd like to see this.
> Then I might go with MHFS at first
I wouldn't consider MHFS's HTTP server "production ready" and suffers from the above mentioned O_NONBLOCK issue, but I'm curious how it would go.
If you haven't already, feel free to join the Redbean/Cosmopolitan Libc discord to discuss. (There's a link on the APPerl webpage).