How to write a simple REST based server in C # in mono?

I am moving a small server from Scala to C # (to Mono) and should get a very simple REST interface. I am trying to figure out the easiest (but reliable) way to do this.

For reasons that I will not be logging in, it is not recommended to use web servers such as Apache, Nginx, etc. Yes, I could manually encode something while listening to sockets, process an HTTP request, process streams, etc ... but it hopes there are libraries or frameworks that can handle this already.

Any suggestions?

+7
source share
5 answers

I created a web server that should work in mono. At least version 1.1 should.

You can find it here: http://webserver.codeplex.com .

This is not a standalone server, you include it in your project and create it in your web server. It supports all HTTP verbs and receives a small MVC infrastructure that makes it easy to create REST services.

+3
source

Take a look at manos . This is a standalone high-performance web application infrastructure, which, I think, can be used as a server based on REST.

+3
source

You can use MonoRail or Mono WCF .

+2
source

I asked a question about C # parameters similar to Ruby Sinatra, see Is there a .NET framework similar to Ruby's Sinatra?

+2
source

Check out Nancy - it's a lightweight web structure for .net

http://nancyfx.org/

+1
source

All Articles