在.NET重量轻HTTP Server库 [英] Light weight HTTP Server library in .NET

查看:301
本文介绍了在.NET重量轻HTTP Server库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个小而快的图书馆实施.NET HTTP服务器

I'm looking for a small and fast library implementing an HTTP server in .NET

我的总体要求是:

  • 支持多个并发连接
  • 只需要支持静态内容(没有服务器端处理)
  • 在HTTP只,HTTPS不需要
  • preferably能够从一个服务于一个页中的存储器源。我想将它集成到其它应用程序,以能够使通过浏览器改变现有的数据,但我不希望有它首先写入到磁盘上的文件。例如,只是把它传递一个C#字符串作为当前页面内容使用。
  • preferably开源的,所以我可以根据需要进行修改
  • 绝对的需要是免费的...这是一个个人项目,没有预算比我自己的时间等。我也希望能够释放,将自由地使用这个库(即使这意味着符合该库的具体OSS许可证的最终产品。
  • Supports multiple simultaneous connections
  • Only needs to support static content (no server side processing)
  • HTTP only, HTTPS not needed
  • Preferably be able to serve a page from an in memory source. I want to integrate it into another app to be able to make changing data available via a browser, but I don't want to have to write it to a file on disk first. For example, just pass it a C# string to use as the current page content.
  • Preferably open source so I can modify it if needed
  • Definitely needs to be free... it's for a personal project with no budget other than my own time. I also want to be able to release the final product that would use this library freely (even if that means complying to the particular OSS license of that library.

编辑:澄清一些更多的,我需要的可能是非常简单的。我需要能够满足基本2个文件,我想直接从内存中提供。就是这样。是的,我可以写我自己,但我想确保我没有做的事情已经可用。

To clarify some more, what I need can be REALLY simple. I need to be able to serve essentially 2 documents, which I would like to be served directly from memory. And that's it. Yes, I could write my own, but I wanted to make sure I wasn't doing something that was already available.

推荐答案

使用卡西尼

免费,开源。

这将需要琐碎的黑客从内存中任职。

It would take trivial hacking to serve from memory.

这篇关于在.NET重量轻HTTP Server库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆