Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write simple REST based server in C# on mono? [closed]

Tags:

c#

mono

I'm porting a small server from Scala to C# (on Mono) and need to get a very simple REST interface going. Am trying to figure out the easiest (but robust) way to do this.

For reasons I wont go into, NOT using webservers like Apache, Nginx etc would be preferred. Yes, I could manually code up something listening to sockets, parse HTTP request coming in, handle threading etc... but hoping there are libraries or frameworks that already handle this.

Any suggestions?

like image 721
Ken Faulkner Avatar asked Jan 14 '11 12:01

Ken Faulkner


2 Answers

I've built a webserver that should work in mono. At least version 1.1 should.

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

It's not a standalone server, you include it in your project and create a webserver in you code. It support all HTTP verbs and got a small MVC framework which makes it easy to create REST services.

like image 117
jgauffin Avatar answered Oct 07 '22 21:10

jgauffin


Take a look at manos. It's a standalone high performance web application framework which, I think, can be used as a REST based server.

like image 21
yojimbo87 Avatar answered Oct 07 '22 20:10

yojimbo87