![]() Why not? If you just want a super basic local server (perhaps for exposing data from a local demon, like Cups or Syncthing do), no need for a ton of dependencies or high scalability libraries. It serves files from the current directory. ![]() Similar to python -m rver, a simple program http_of_dir is provided. # the path "echo" just prints the request.Ĭontent-Type: application/x-www-form-urlencoded ![]() Printf.printf "listening on (S.addr server) (S.port server) (fun req -> S.Response.make_ok (Format.asprintf S.Request.pp req)) (fun name _req -> S.Response.make_ok ("hello " ^name ^"!\n")) The basic echo server from src/examples/echo.ml: Note: it can be useful to add the jemalloc opam package for long running server, as it does a good job at controlling memory usage. Give your ID to your friends, share a folder and watch: UPnP will do if you don't want to port forward or you don't know how.Minimal HTTP server using good old threads, with stream abstractions, simple routing, URL encoding/decoding, and optional compression with camlzip.įree from all forms of ppx, async monads, etc. Simple. Syncthing doesn't need IP addresses or advanced configuration: it just works, over LAN and over the Internet.Run it on your desktop computers and synchronize them with your server for backup. Works on Mac OS X, Windows, Linux, FreeBSD, Solaris, OpenBSD, and many others. kopia - Cross-platform backup tool for Windows, macOS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |