3 ms·
Are there any simple projects like HTTP server in F# for CoreCLR somewhere? With a Dockerfile if possible. Last time I tried to build something like that for Po
by hdhzy 9y ago
Are there any simple projects like HTTP server in F# for CoreCLR somewhere? With a Dockerfile if possible. Last time I tried to build something like that for PoC the amount of struggles I had with various versions of CoreCLR was overwhelming.
- sremani 9y agoFreya ? This link may help you, https://www.infoq.com/news/2017/05/freya-kestrel https://www.infoq.com/news/2017/05/freya-kestrel
- kirse 9y agoGiraffe is a fantastic little project that is a thin layer on top of ASP.NET Core. Works out of the box with the provided template, test locally, deploy to Azure, etc. https://github.com/dustinmoris/Giraffe https://github.com/dustinmoris/Giraffe
- hdhzy 9y agoThanks but I'm looking for something simple like returning plain text in 200 HTTP response using only built-in API. Completely minimal example. Using framework for me now would be like learning JavaScript by writing SPA in React.
- kirse 9y agoFSSnip usually has those things. If you're talking that minimal I would just look up existing C# docs and translate them over to F#... ASP.NET Core is very lightweight w/ Kestrel though. [1] http://fssnip.net/7OR/title/Simple-HTTP-Server http://fssnip.net/7OR/title/Simple-HTTP-Server [2] http://fssnip.net/search/http%20server http://fssnip.net/search/http%20server
- hdhzy 9y agoWow, that's exactly what I wanted. Thank you very much! Fssnip looks great.