开发者

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

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

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 li开发者_StackOverflow中文版stening to sockets, parse HTTP request coming in, handle threading etc... but hoping there are libraries or frameworks that already handle this.

Any suggestions?


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.


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.


You can use MonoRail or Mono WCF.


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


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

http://nancyfx.org/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜